Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 109 kB / 16.42 MB, free: 6.465 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.001453/0.001453, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.601/2.601, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 64.11 kB / 1.055 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8665/0.8679, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.004217/0.8722, allocations: 1.428 MB / 1.21 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.8734, allocations: 435 kB / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.274e-05/0.8735, allocations: 0 / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.8736, allocations: 7.875 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.8737, allocations: 7.938 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.874, allocations: 23.92 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.8742, allocations: 47.84 kB / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.8743, allocations: 11.98 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.476e-05/0.8744, allocations: 19.92 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.925e-05/0.8745, allocations: 23.86 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.8746, allocations: 4 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.748e-05/0.8746, allocations: 4 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.8747, allocations: 11.92 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.731e-05/0.8747, allocations: 19.94 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.8749, allocations: 39.88 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.8749, allocations: 3.938 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8749, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.8749, allocations: 0 / 1.21 GB, free: 11.71 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.0008432/0.8758, allocations: 398.9 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.8759, allocations: 8.031 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.8759, allocations: 8.844 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.8761, allocations: 176.3 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.8761, allocations: 4.375 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.8762, allocations: 384 / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001635/0.8763, allocations: 57.94 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.8764, allocations: 0 / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.8764, allocations: 7.984 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.8764, allocations: 0 / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.232e-05/0.8765, allocations: 12 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.8771, allocations: 280.8 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.8772, allocations: 42.56 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.925e-05/0.8773, allocations: 24.91 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.8773, allocations: 0 / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.8776, allocations: 101 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 2.515e-06/0.8777, allocations: 0 / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.000418/0.8781, allocations: 147.2 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.307e-05/0.8782, allocations: 81.11 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.8783, allocations: 105.8 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.8783, allocations: 29.7 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.47e-05/0.8784, allocations: 92.08 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.8785, allocations: 19.88 kB / 1.212 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.378e-05/0.8785, allocations: 25.72 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.8787, allocations: 314.8 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.628e-05/0.8788, allocations: 23.98 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.246e-05/0.8789, allocations: 34.58 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.8791, allocations: 118.2 kB / 1.212 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.8791, allocations: 0 / 1.212 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002614/0.8793, allocations: 135.2 kB / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.8794, allocations: 37.62 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.8794, allocations: 4 kB / 1.213 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.8794, allocations: 0 / 1.213 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.855e-05/0.8795, allocations: 7.938 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.8795, allocations: 0 / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.8796, allocations: 4 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.8797, allocations: 4 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001435/0.8798, allocations: 155.5 kB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.8799, allocations: 11.94 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.8799, allocations: 4.375 kB / 1.213 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.984e-06/0.8799, allocations: 3.984 kB / 1.213 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.8799, allocations: 3.984 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.865e-05/0.88, allocations: 85.02 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.88, allocations: 4 kB / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/0.8802, allocations: 12.36 kB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/0.8802, allocations: 3.938 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003984/0.8806, allocations: 281.9 kB / 1.213 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000384/0.881, allocations: 304.5 kB / 1.213 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.239e-05/0.8812, allocations: 31.98 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.148e-05/0.8812, allocations: 87.27 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of Backend: time 3.8e-07/0.8812, allocations: 0 / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006115/0.8819, allocations: 169.7 kB / 1.214 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0007381/0.8826, allocations: 0.654 MB / 1.214 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of Templates: time 0.004712/0.8873, allocations: 0.9892 MB / 1.215 GB, free: 6.238 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches