Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001369/0.001369, allocations: 97.11 kB / 19.7 MB, free: 2.129 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.001688/0.001688, allocations: 209.8 kB / 23 MB, free: 4.934 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.609/1.609, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.409/3.409, allocations: 0.49 GB / 0.7959 GB, free: 35.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002157/0.002157, allocations: 66.25 kB / 1.155 GB, free: 25.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4591/0.4612, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002426/0.4636, allocations: 0.6871 MB / 1.328 GB, free: 336 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002028/0.4657, allocations: 1.28 MB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.444e-05/0.4657, allocations: 8 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.4658, allocations: 3.938 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.4659, allocations: 23.8 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009227/0.4668, allocations: 307 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000323/0.4671, allocations: 255.6 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.4672, allocations: 16.17 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.4674, allocations: 103.8 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.4675, allocations: 91.75 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.943e-05/0.4676, allocations: 20 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.542e-05/0.4677, allocations: 35.98 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.4677, allocations: 19.88 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.4678, allocations: 79.8 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.4681, allocations: 223.4 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4681, allocations: 0 / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.987e-06/0.4681, allocations: 3.984 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.4681, allocations: 4 kB / 1.33 GB, free: 13.87 MB / 1.029 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.0006434/0.4688, allocations: 419.1 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.4688, allocations: 8.031 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.145e-05/0.4689, allocations: 8.938 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.469, allocations: 126.4 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.4691, allocations: 12.3 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.4691, allocations: 16.38 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.4692, allocations: 54.23 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4692, allocations: 3.938 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.4693, allocations: 0 / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.4693, allocations: 8 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.417e-05/0.4693, allocations: 19.98 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005631/0.4699, allocations: 320.2 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.521e-05/0.47, allocations: 30.52 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.88e-05/0.47, allocations: 20.94 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.47, allocations: 0 / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.4702, allocations: 107.2 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.4702, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003464/0.4706, allocations: 141.5 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.4706, allocations: 55.42 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.4708, allocations: 135.8 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.4708, allocations: 33.7 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.726e-05/0.4709, allocations: 100.1 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/0.4709, allocations: 24.22 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.4711, allocations: 65.67 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.4712, allocations: 322.8 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.4715, allocations: 181 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.4718, allocations: 227 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.4721, allocations: 244.7 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.4721, allocations: 3.938 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007256/0.4728, allocations: 468.3 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.473e-05/0.4729, allocations: 101.1 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4729, allocations: 0 / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.473, allocations: 8.188 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.917e-05/0.473, allocations: 7.938 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.473, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005156/0.4735, allocations: 83.8 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.4736, allocations: 24.05 kB / 1.333 GB, free: 10.22 MB / 1.029 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.0001408/0.4737, allocations: 138.3 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.4737, allocations: 7.953 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.4737, allocations: 8.375 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4738, allocations: 0 / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.4738, allocations: 4 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.4738, allocations: 7.953 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.4738, allocations: 3.984 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.84e-05/0.4738, allocations: 11.94 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.4739, allocations: 7.922 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002177/0.4741, allocations: 180.9 kB / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002692/0.4743, allocations: 290.7 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.544e-05/0.4744, allocations: 27.92 kB / 1.334 GB, free: 9.508 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.503e-05/0.4745, allocations: 105.4 kB / 1.334 GB, free: 9.406 MB / 1.029 GB Notification: Performance of Backend: time 4.21e-07/0.4745, allocations: 0 / 1.334 GB, free: 9.406 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008493/0.4753, allocations: 477.5 kB / 1.335 GB, free: 8.879 MB / 1.029 GB Notification: Performance of SimCode: time 0.0007582/0.4761, allocations: 0.6365 MB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of Templates: time 0.006679/0.4828, allocations: 3.103 MB / 1.338 GB, free: 5.16 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.704699959998834]