Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.TrueHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truHol.u|truHol.y|booPul1.y|truHol1.y|truHol2.u|truHol2.y|truHol3.u|truHol3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truHol.u|truHol.y|booPul1.y|truHol1.y|truHol2.u|truHol2.y|truHol3.u|truHol3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.002463/0.002463, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.488/1.488, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 472.7 MB / 0.746 GB, free: 452 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 75.81 kB / 1.07 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9615/0.9631, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold): time 0.004872/0.968, allocations: 2.831 MB / 1.229 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003313/0.9713, allocations: 1.683 MB / 1.231 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006592/0.972, allocations: 23.94 kB / 1.231 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.9725, allocations: 114.6 kB / 1.231 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000533/0.9731, allocations: 114.8 kB / 1.231 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.9756, allocations: 0.9604 MB / 1.232 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002277/0.9779, allocations: 1.689 MB / 1.234 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001485/0.9794, allocations: 0.9101 MB / 1.234 GB, free: 5.152 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009869/0.9804, allocations: 0.5649 MB / 1.235 GB, free: 4.586 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006751/0.9811, allocations: 0.5564 MB / 1.236 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002195/0.9813, allocations: 176 kB / 1.236 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.9816, allocations: 204 kB / 1.236 GB, free: 3.656 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002541/0.9819, allocations: 311.1 kB / 1.236 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0005413/0.9825, allocations: 0.603 MB / 1.237 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001615/0.9841, allocations: 1.76 MB / 1.239 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.9841, allocations: 0 / 1.239 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.826e-06/0.9841, allocations: 0 / 1.239 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.653e-05/0.9841, allocations: 0 / 1.239 GB, free: 0.9844 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.001996/0.9861, allocations: 1.424 MB / 1.24 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.9862, allocations: 8.031 kB / 1.24 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.9864, allocations: 132.2 kB / 1.24 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008846/0.9873, allocations: 0.573 MB / 1.241 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.78e-05/0.9874, allocations: 106.4 kB / 1.241 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.9876, allocations: 136.4 kB / 1.241 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/0.9894, allocations: 1.214 MB / 1.242 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.9894, allocations: 4.125 kB / 1.242 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.061e-05/0.9895, allocations: 51.92 kB / 1.242 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.9896, allocations: 24 kB / 1.242 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.9908, allocations: 0.7404 MB / 1.243 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004731/0.9955, allocations: 5.126 MB / 1.248 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.9968, allocations: 0.798 MB / 1.249 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005566/0.9974, allocations: 414 kB / 1.249 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.9974, allocations: 19.92 kB / 1.249 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009173/0.9984, allocations: 0.6435 MB / 1.25 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=100): time 3.076e-06/0.9984, allocations: 0 / 1.25 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=100): time 0.002116/1, allocations: 1.16 MB / 1.251 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/1.001, allocations: 374.9 kB / 1.251 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/1.001, allocations: 469 kB / 1.252 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001409/1.001, allocations: 97.69 kB / 1.252 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003148/1.002, allocations: 393.7 kB / 1.252 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/1.002, allocations: 250.2 kB / 1.252 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004753/1.002, allocations: 371.4 kB / 1.253 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.003, allocations: 329.9 kB / 1.253 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007245/1.003, allocations: 395.8 kB / 1.253 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009662/1.004, allocations: 0.8596 MB / 1.254 GB, free: 16 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/1.006, allocations: 1.219 MB / 1.255 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/1.006, allocations: 4 kB / 1.255 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.002372/1.008, allocations: 1.486 MB / 1.257 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/1.008, allocations: 142.8 kB / 1.257 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/1.008, allocations: 16 kB / 1.257 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.004e-05/1.008, allocations: 20 kB / 1.257 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/1.009, allocations: 163.5 kB / 1.257 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.182e-05/1.009, allocations: 23.94 kB / 1.257 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/1.01, allocations: 230.9 kB / 1.257 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/1.01, allocations: 87.97 kB / 1.258 GB, free: 12.35 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 148 ($PRE.truHol.onDelay.u,$PRE.truHol.toOutputTrue.enableFire,$PRE.truHol.toInitial.enableFire,$PRE.truHol1.onDelay.u,$PRE.truHol1.toOutputTrue.enableFire,$PRE.truHol1.toInitial.enableFire,$PRE.truHol2.onDelay.u,$PRE.truHol2.toOutputTrue.enableFire,$PRE.truHol2.toInitial.enableFire,$PRE.truHol3.onDelay.u,$PRE.truHol3.toOutputTrue.enableFire,$PRE.truHol3.toInitial.enableFire,$PRE.truHol.onDelay.t_next,$whenCondition18,$whenCondition16,$whenCondition17,truHol.toInitial.enableFire,truHol.toOutputTrue.enableFire,truHol.outputTrue.active,truHol.outputTrue.oldActive,$PRE.truHol.outputTrue.oldActive,truHol.outputTrue.newActive,$PRE.truHol.outputTrue.newActive,truHol.outputTrue.localActive,$PRE.truHol.outputTrue.localActive,truHol.initialStep.oldActive,$PRE.truHol.initialStep.oldActive,truHol.initialStep.newActive,$PRE.truHol.initialStep.newActive,truHol.initialStep.localActive,$PRE.truHol.initialStep.localActive,truHol.initialStep.active,truHol.onDelay.y,truHol.onDelay.u,truHol.stateGraphRoot.activeSteps,booPul.y,$PRE.booPul.y,$whenCondition20,$whenCondition19,truHol.onDelay.t_next,truHol.toOutputTrue.t_start,$PRE.truHol.toOutputTrue.t_start,truHol.toInitial.t_start,$PRE.truHol.toInitial.t_start,$PRE.truHol1.onDelay.t_next,$whenCondition13,$whenCondition11,$whenCondition12,truHol1.toInitial.enableFire,truHol1.toOutputTrue.enableFire,truHol1.outputTrue.active,truHol1.outputTrue.oldActive,$PRE.truHol1.outputTrue.oldActive,truHol1.outputTrue.newActive,$PRE.truHol1.outputTrue.newActive,truHol1.outputTrue.localActive,$PRE.truHol1.outputTrue.localActive,truHol1.initialStep.oldActive,$PRE.truHol1.initialStep.oldActive,truHol1.initialStep.newActive,$PRE.truHol1.initialStep.newActive,truHol1.initialStep.localActive,$PRE.truHol1.initialStep.localActive,truHol1.initialStep.active,truHol1.onDelay.y,truHol1.onDelay.u,truHol1.stateGraphRoot.activeSteps,booPul1.y,$PRE.booPul1.y,$whenCondition15,$whenCondition14,truHol1.onDelay.t_next,truHol1.toOutputTrue.t_start,$PRE.truHol1.toOutputTrue.t_start,truHol1.toInitial.t_start,$PRE.truHol1.toInitial.t_start,$PRE.truHol2.onDelay.t_next,$whenCondition8,$whenCondition6,$whenCondition7,truHol2.toInitial.enableFire,truHol2.toOutputTrue.enableFire,truHol2.outputTrue.active,truHol2.outputTrue.oldActive,$PRE.truHol2.outputTrue.oldActive,truHol2.outputTrue.newActive,$PRE.truHol2.outputTrue.newActive,truHol2.outputTrue.localActive,$PRE.truHol2.outputTrue.localActive,truHol2.initialStep.oldActive,$PRE.truHol2.initialStep.oldActive,truHol2.initialStep.newActive,$PRE.truHol2.initialStep.newActive,truHol2.initialStep.localActive,$PRE.truHol2.initialStep.localActive,truHol2.initialStep.active,truHol2.onDelay.y,truHol2.onDelay.u,truHol2.stateGraphRoot.activeSteps,booPul2.y,$PRE.booPul2.y,$whenCondition10,$whenCondition9,truHol2.onDelay.t_next,truHol2.toOutputTrue.t_start,$PRE.truHol2.toOutputTrue.t_start,truHol2.toInitial.t_start,$PRE.truHol2.toInitial.t_start,$PRE.truHol3.onDelay.t_next,$whenCondition3,$whenCondition1,$whenCondition2,truHol3.toInitial.enableFire,truHol3.toOutputTrue.enableFire,truHol3.outputTrue.active,truHol3.outputTrue.oldActive,$PRE.truHol3.outputTrue.oldActive,truHol3.outputTrue.newActive,$PRE.truHol3.outputTrue.newActive,truHol3.outputTrue.localActive,$PRE.truHol3.outputTrue.localActive,truHol3.initialStep.oldActive,$PRE.truHol3.initialStep.oldActive,truHol3.initialStep.newActive,$PRE.truHol3.initialStep.newActive,truHol3.initialStep.localActive,$PRE.truHol3.initialStep.localActive,truHol3.initialStep.active,truHol3.onDelay.y,truHol3.onDelay.u,truHol3.stateGraphRoot.activeSteps,booPul3.y,$PRE.booPul3.y,$whenCondition5,$whenCondition4,truHol3.onDelay.t_next,truHol3.toOutputTrue.t_start,$PRE.truHol3.toOutputTrue.t_start,truHol3.toInitial.t_start,$PRE.truHol3.toInitial.t_start,truHol.stateGraphRoot.resume,truHol.stateGraphRoot.suspend,truHol1.stateGraphRoot.resume,truHol1.stateGraphRoot.suspend,truHol2.stateGraphRoot.resume,truHol2.stateGraphRoot.suspend,truHol3.stateGraphRoot.resume,truHol3.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 4 * 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.0006957/1.011, allocations: 393 kB / 1.258 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/1.011, allocations: 79.5 kB / 1.258 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001489/1.012, allocations: 0.8907 MB / 1.259 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/1.012, allocations: 11.97 kB / 1.259 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.012, allocations: 4 kB / 1.259 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/1.013, allocations: 144.5 kB / 1.259 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/1.013, allocations: 47.91 kB / 1.259 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/1.013, allocations: 27.98 kB / 1.259 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/1.013, allocations: 103.8 kB / 1.259 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001823/1.015, allocations: 1.865 MB / 1.261 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001705/1.017, allocations: 1.903 MB / 1.263 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006185/1.017, allocations: 455.6 kB / 1.263 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002193/1.018, allocations: 231.2 kB / 1.263 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of Backend: time 4.81e-07/1.018, allocations: 0 / 1.263 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002833/1.02, allocations: 1.097 MB / 1.265 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of SimCode: time 0.00228/1.023, allocations: 1.655 MB / 1.266 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of Templates: time 0.02013/1.043, allocations: 11.39 MB / 1.277 GB, free: 8.008 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_TrueHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TrueHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches