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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002519/0.002519, allocations: 212.7 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.619/3.619, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 70.78 kB / 1.186 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4531/0.4552, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002418/0.4576, allocations: 0.6839 MB / 1.365 GB, free: 12.9 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002129/0.4598, allocations: 1.292 MB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.4598, allocations: 0 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.055e-05/0.4599, allocations: 3.938 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.039e-05/0.46, allocations: 23.84 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008595/0.4608, allocations: 302.8 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.4612, allocations: 271.5 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.4613, allocations: 12.17 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.4614, allocations: 95.88 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.4616, allocations: 83.73 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.4617, allocations: 24 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.679e-05/0.4618, allocations: 31.98 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.957e-05/0.4618, allocations: 11.98 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.4619, allocations: 79.81 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.4622, allocations: 223.3 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4622, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4622, allocations: 7.938 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.4622, allocations: 0 / 1.367 GB, free: 10.45 MB / 1.061 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.0006973/0.4629, allocations: 423 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.463, allocations: 8.031 kB / 1.367 GB, free: 9.98 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.463, allocations: 16.89 kB / 1.367 GB, free: 9.965 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.4632, allocations: 118.4 kB / 1.367 GB, free: 9.824 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4632, allocations: 8.375 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.4633, allocations: 12.38 kB / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.4634, allocations: 62.22 kB / 1.368 GB, free: 9.738 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4634, allocations: 3.938 kB / 1.368 GB, free: 9.734 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.4634, allocations: 4 kB / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.4635, allocations: 7.984 kB / 1.368 GB, free: 9.723 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.89e-05/0.4635, allocations: 19.94 kB / 1.368 GB, free: 9.703 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006367/0.4641, allocations: 316.3 kB / 1.368 GB, free: 9.363 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.776e-05/0.4642, allocations: 34.5 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.2e-05/0.4643, allocations: 17.92 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.4643, allocations: 0 / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.4645, allocations: 107.4 kB / 1.368 GB, free: 9.184 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.4645, allocations: 0 / 1.368 GB, free: 9.184 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0003469/0.4649, allocations: 137.5 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.4649, allocations: 63.41 kB / 1.368 GB, free: 8.969 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.4651, allocations: 136.5 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.4651, allocations: 29.7 kB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.4652, allocations: 104.2 kB / 1.368 GB, free: 8.688 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.4652, allocations: 19.86 kB / 1.368 GB, free: 8.668 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.4654, allocations: 65.67 kB / 1.369 GB, free: 8.598 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.4655, allocations: 322.8 kB / 1.369 GB, free: 8.273 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.4658, allocations: 173 kB / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.4662, allocations: 236.7 kB / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.4665, allocations: 238.2 kB / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4665, allocations: 384 / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007934/0.4673, allocations: 479.5 kB / 1.37 GB, free: 7.035 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001652/0.4675, allocations: 97.09 kB / 1.37 GB, free: 6.922 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.4675, allocations: 192 / 1.37 GB, free: 6.922 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/0.4675, allocations: 11.94 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.26e-05/0.4675, allocations: 7.984 kB / 1.37 GB, free: 6.902 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.4676, allocations: 7.938 kB / 1.37 GB, free: 6.895 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004778/0.468, allocations: 79.8 kB / 1.37 GB, free: 6.816 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.012e-05/0.4681, allocations: 19.98 kB / 1.37 GB, free: 6.797 MB / 1.061 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.000169/0.4683, allocations: 136.2 kB / 1.37 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.4683, allocations: 7.953 kB / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.4684, allocations: 16.36 kB / 1.37 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4684, allocations: 0 / 1.37 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4684, allocations: 0 / 1.37 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4684, allocations: 0 / 1.37 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.4685, allocations: 133.2 kB / 1.37 GB, free: 6.465 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4685, allocations: 0 / 1.37 GB, free: 6.465 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.586e-06/0.4685, allocations: 0 / 1.37 GB, free: 6.465 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.4686, allocations: 7.984 kB / 1.37 GB, free: 6.457 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.4686, allocations: 4 kB / 1.37 GB, free: 6.453 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4686, allocations: 0 / 1.37 GB, free: 6.453 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4686, allocations: 0 / 1.37 GB, free: 6.453 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.4688, allocations: 152.9 kB / 1.371 GB, free: 6.285 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.697e-05/0.4688, allocations: 11.89 kB / 1.371 GB, free: 6.273 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.4688, allocations: 4 kB / 1.371 GB, free: 6.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.16e-05/0.4689, allocations: 0 / 1.371 GB, free: 6.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.4689, allocations: 11.98 kB / 1.371 GB, free: 6.258 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.4689, allocations: 11.98 kB / 1.371 GB, free: 6.246 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.43e-05/0.469, allocations: 99.27 kB / 1.371 GB, free: 6.148 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.469, allocations: 3.938 kB / 1.371 GB, free: 6.145 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002693/0.4693, allocations: 44 kB / 1.371 GB, free: 6.102 MB / 1.061 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.0002152/0.4695, allocations: 103.2 kB / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005652/0.4701, allocations: 411.2 kB / 1.371 GB, free: 5.535 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4701, allocations: 0 / 1.371 GB, free: 5.535 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.868e-05/0.4701, allocations: 35.95 kB / 1.371 GB, free: 5.5 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.4704, allocations: 32.28 kB / 1.371 GB, free: 5.469 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004472/0.4709, allocations: 191 kB / 1.371 GB, free: 5.254 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.566e-05/0.4709, allocations: 83.77 kB / 1.372 GB, free: 5.148 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.471, allocations: 8.438 kB / 1.372 GB, free: 5.141 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.471, allocations: 11.44 kB / 1.372 GB, free: 5.129 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.471, allocations: 0 / 1.372 GB, free: 5.129 MB / 1.061 GB Notification: Performance of Templates: time 0.006971/0.478, allocations: 2.99 MB / 1.375 GB, free: 2.207 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.941816911101341]