Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 106.3 kB / 15.99 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 196.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.58/2.58, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 61.78 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2822, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002155/0.2844, allocations: 0.7545 MB / 1.065 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001878/0.2863, allocations: 1.268 MB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.2863, allocations: 11.88 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.957e-05/0.2864, allocations: 0 / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.2865, allocations: 19.84 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008563/0.2874, allocations: 284.4 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.2877, allocations: 275.6 kB / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.2878, allocations: 8.188 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.2879, allocations: 107.7 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2881, allocations: 75.81 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.2881, allocations: 24 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.312e-05/0.2882, allocations: 32 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.526e-05/0.2882, allocations: 19.92 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2884, allocations: 87.73 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.2886, allocations: 155.9 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2886, allocations: 0 / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2886, allocations: 0 / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.2886, allocations: 0 / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006186/0.2892, allocations: 492.4 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2893, allocations: 8.625 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.595e-05/0.2893, allocations: 16.84 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.2895, allocations: 180.2 kB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.2895, allocations: 12.34 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.2896, allocations: 16.38 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.2897, allocations: 58.17 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2897, allocations: 3.938 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.2897, allocations: 3.984 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2897, allocations: 4 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.082e-05/0.2898, allocations: 16 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.2904, allocations: 420.5 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.158e-05/0.2904, allocations: 34.5 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.287e-05/0.2905, allocations: 16.86 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.2905, allocations: 0 / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.2907, allocations: 107.3 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.2907, allocations: 4 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0003075/0.291, allocations: 137.5 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.291, allocations: 55.34 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.2912, allocations: 131.2 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.2912, allocations: 37.7 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.253e-05/0.2913, allocations: 100.1 kB / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.2913, allocations: 15.81 kB / 1.069 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.2915, allocations: 69.67 kB / 1.069 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2917, allocations: 326.8 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.2918, allocations: 91.95 kB / 1.069 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.2921, allocations: 130 kB / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.2924, allocations: 246.9 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2924, allocations: 0 / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006113/0.293, allocations: 374.5 kB / 1.07 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.289e-05/0.2931, allocations: 103.3 kB / 1.07 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2931, allocations: 12 kB / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2931, allocations: 0 / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.492e-05/0.2932, allocations: 4 kB / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.2932, allocations: 7.938 kB / 1.07 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/0.2937, allocations: 87.73 kB / 1.07 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.949e-05/0.2938, allocations: 19.98 kB / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.2939, allocations: 132 kB / 1.07 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.2939, allocations: 7.906 kB / 1.071 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.69e-05/0.294, allocations: 8.75 kB / 1.071 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.294, allocations: 4 kB / 1.071 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.294, allocations: 0 / 1.071 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.294, allocations: 3.984 kB / 1.071 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.2942, allocations: 189.5 kB / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2942, allocations: 4 kB / 1.071 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.417e-05/0.2942, allocations: 7.938 kB / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.2942, allocations: 0 / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.2942, allocations: 7.984 kB / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2942, allocations: 0 / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2942, allocations: 0 / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.2944, allocations: 136.9 kB / 1.071 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.038e-05/0.2945, allocations: 92.94 kB / 1.071 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.2945, allocations: 4 kB / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.463e-05/0.2945, allocations: 4 kB / 1.071 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.975e-05/0.2946, allocations: 7.984 kB / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.2946, allocations: 4 kB / 1.071 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.693e-05/0.2947, allocations: 102.2 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2947, allocations: 0 / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002554/0.2949, allocations: 44 kB / 1.071 GB, free: 7.547 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.2951, allocations: 105 kB / 1.071 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005325/0.2956, allocations: 377.9 kB / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2957, allocations: 0 / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.307e-05/0.2957, allocations: 43.86 kB / 1.072 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.296, allocations: 28.39 kB / 1.072 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.2964, allocations: 242.5 kB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.2967, allocations: 0.6924 MB / 1.073 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.2968, allocations: 11.44 kB / 1.073 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.2968, allocations: 0 / 1.073 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of Templates: time 0.003919/0.3007, allocations: 1.882 MB / 1.074 GB, free: 4.094 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches