Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001313/0.001313, allocations: 101.9 kB / 16.4 MB, free: 6.461 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.001428/0.001428, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.274/1.274, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.507/2.507, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 71.88 kB / 1.055 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6703/0.6716, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001781/0.6734, allocations: 0.7076 MB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001459/0.6749, allocations: 1.26 MB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.206e-05/0.675, allocations: 4 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.204e-05/0.675, allocations: 7.875 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.44e-05/0.6751, allocations: 15.84 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008311/0.676, allocations: 310.3 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.6763, allocations: 279.5 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.216e-05/0.6764, allocations: 16.17 kB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.6765, allocations: 99.86 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.6767, allocations: 95.73 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.6767, allocations: 24 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.271e-05/0.6768, allocations: 35.98 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.6769, allocations: 15.92 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.49e-05/0.677, allocations: 83.8 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.6772, allocations: 223.3 kB / 1.212 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.6772, allocations: 0 / 1.212 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6772, allocations: 0 / 1.212 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.6773, allocations: 0 / 1.212 GB, free: 10.43 MB / 0.9356 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.0005409/0.6778, allocations: 490.2 kB / 1.212 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.6778, allocations: 8.031 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.909e-05/0.6779, allocations: 20.78 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.678, allocations: 192.1 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.6781, allocations: 8.375 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.6781, allocations: 16.38 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.6782, allocations: 54.23 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.6782, allocations: 3.938 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.6782, allocations: 4 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.6783, allocations: 0 / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.861e-05/0.6783, allocations: 23.98 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.6788, allocations: 412.5 kB / 1.213 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.709e-05/0.6789, allocations: 26.58 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.492e-05/0.6789, allocations: 24.94 kB / 1.213 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.6789, allocations: 0 / 1.213 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.6791, allocations: 111.2 kB / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.6791, allocations: 0 / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0002749/0.6794, allocations: 137.5 kB / 1.213 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.6794, allocations: 59.41 kB / 1.213 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.441e-05/0.6795, allocations: 133.7 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.6796, allocations: 33.7 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.6796, allocations: 100.1 kB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.6797, allocations: 19.72 kB / 1.213 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.6798, allocations: 69.67 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.6799, allocations: 322.8 kB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.6801, allocations: 91.91 kB / 1.214 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.6803, allocations: 135.6 kB / 1.214 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.6805, allocations: 239 kB / 1.214 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6805, allocations: 0 / 1.214 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005396/0.6811, allocations: 382.2 kB / 1.214 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.6811, allocations: 97.09 kB / 1.215 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.6811, allocations: 384 / 1.215 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.6812, allocations: 4 kB / 1.215 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.526e-05/0.6812, allocations: 15.91 kB / 1.215 GB, free: 6.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6812, allocations: 4 kB / 1.215 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.6817, allocations: 83.88 kB / 1.215 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.6817, allocations: 19.98 kB / 1.215 GB, free: 6.824 MB / 0.9356 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.0001031/0.6818, allocations: 129.7 kB / 1.215 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.6818, allocations: 15.83 kB / 1.215 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.6819, allocations: 12.38 kB / 1.215 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.6819, allocations: 0 / 1.215 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6819, allocations: 0 / 1.215 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.6819, allocations: 0 / 1.215 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.682, allocations: 201.5 kB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.682, allocations: 0 / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.207e-05/0.6821, allocations: 4 kB / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.6821, allocations: 0 / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.6821, allocations: 0 / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.6821, allocations: 8 kB / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6821, allocations: 0 / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.6823, allocations: 136.9 kB / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.6823, allocations: 89.02 kB / 1.215 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.6823, allocations: 4 kB / 1.215 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.444e-05/0.6824, allocations: 4 kB / 1.215 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.6824, allocations: 11.98 kB / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.6824, allocations: 0 / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.6825, allocations: 96.67 kB / 1.215 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.5e-07/0.6825, allocations: 0 / 1.215 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002595/0.6827, allocations: 47.98 kB / 1.215 GB, free: 5.98 MB / 0.9356 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.0001389/0.6829, allocations: 112.6 kB / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004204/0.6833, allocations: 370 kB / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6833, allocations: 0 / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.466e-05/0.6834, allocations: 39.92 kB / 1.216 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.6837, allocations: 28.19 kB / 1.216 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.684, allocations: 216.9 kB / 1.216 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.6842, allocations: 0.6963 MB / 1.217 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.6842, allocations: 11.44 kB / 1.217 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.6843, allocations: 0 / 1.217 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of Templates: time 0.003357/0.6876, allocations: 1.885 MB / 1.219 GB, free: 2.555 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches