Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001618/0.001618, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001993/0.001993, allocations: 197.9 kB / 16.14 MB, free: 6.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.378/1.378, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.2 MB / 0.6642 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 59.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8641/0.8654, allocations: 140.4 MB / 0.9489 GB, free: 9.32 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003191/0.8686, allocations: 1.485 MB / 0.9504 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.8697, allocations: 434.1 kB / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.8698, allocations: 0 / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.115e-05/0.8699, allocations: 7.984 kB / 0.9508 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.87, allocations: 9.312 kB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.8703, allocations: 16.11 kB / 0.9508 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001194/0.8704, allocations: 42.36 kB / 0.9508 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.8705, allocations: 8.219 kB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.809e-05/0.8706, allocations: 24.28 kB / 0.9509 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.911e-05/0.8707, allocations: 18.48 kB / 0.9509 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.8708, allocations: 1.594 kB / 0.9509 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.8708, allocations: 2.438 kB / 0.9509 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.31e-05/0.8708, allocations: 17.11 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.294e-05/0.8709, allocations: 15 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.871, allocations: 42.16 kB / 0.951 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.871, allocations: 3.938 kB / 0.951 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8711, allocations: 0 / 0.951 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.8711, allocations: 0 / 0.951 GB, free: 7.68 MB / 0.7169 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.0007029/0.8718, allocations: 398.5 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.8718, allocations: 12.88 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.8719, allocations: 7.484 kB / 0.9514 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.872, allocations: 171 kB / 0.9515 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.8721, allocations: 3.281 kB / 0.9515 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.8721, allocations: 2.938 kB / 0.9515 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.8722, allocations: 57.36 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.8723, allocations: 0 / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.8723, allocations: 0.7812 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.8723, allocations: 1.344 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.782e-05/0.8724, allocations: 17.53 kB / 0.9516 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/0.8729, allocations: 280.5 kB / 0.9519 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.697e-05/0.873, allocations: 36.98 kB / 0.9519 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.205e-05/0.873, allocations: 21.84 kB / 0.9519 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.8731, allocations: 5.125 kB / 0.9519 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.8733, allocations: 110.9 kB / 0.952 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.8733, allocations: 0 / 0.952 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0003102/0.8736, allocations: 135.9 kB / 0.9522 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.8737, allocations: 80.08 kB / 0.9523 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.073e-05/0.8737, allocations: 111.5 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.8737, allocations: 27.52 kB / 0.9524 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.928e-05/0.8738, allocations: 92.81 kB / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.8738, allocations: 19.86 kB / 0.9525 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.8739, allocations: 34.58 kB / 0.9525 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.048e-05/0.8739, allocations: 319.8 kB / 0.9528 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.709e-05/0.874, allocations: 17.3 kB / 0.9528 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.425e-05/0.874, allocations: 34.45 kB / 0.9529 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.8741, allocations: 113 kB / 0.953 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.8741, allocations: 7.938 kB / 0.953 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001433/0.8743, allocations: 118 kB / 0.9531 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.8743, allocations: 39.19 kB / 0.9531 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.8743, allocations: 1.719 kB / 0.9531 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.8744, allocations: 5.797 kB / 0.9532 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.378e-05/0.8744, allocations: 1.375 kB / 0.9532 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.8744, allocations: 1.406 kB / 0.9532 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.302e-05/0.8745, allocations: 16.64 kB / 0.9532 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.8745, allocations: 3 kB / 0.9532 GB, free: 5.441 MB / 0.7169 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 9.377e-05/0.8746, allocations: 152.1 kB / 0.9533 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.8746, allocations: 3.219 kB / 0.9533 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.8747, allocations: 9.969 kB / 0.9533 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.8747, allocations: 1.688 kB / 0.9533 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.8747, allocations: 8.047 kB / 0.9533 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.8747, allocations: 3.938 kB / 0.9533 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000318/0.875, allocations: 403.5 kB / 0.9537 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.875, allocations: 3.938 kB / 0.9537 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-06/0.875, allocations: 5.5 kB / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.875, allocations: 1.406 kB / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.875, allocations: 1.469 kB / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.8751, allocations: 0 / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.8751, allocations: 1.219 kB / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.8753, allocations: 232.8 kB / 0.954 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.547e-05/0.8753, allocations: 86.12 kB / 0.954 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.8753, allocations: 2.75 kB / 0.9541 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.933e-05/0.8754, allocations: 9.25 kB / 0.9541 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.8755, allocations: 11.48 kB / 0.9541 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.8755, allocations: 6.438 kB / 0.9541 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.8755, allocations: 89.52 kB / 0.9542 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8755, allocations: 0 / 0.9542 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002299/0.8758, allocations: 14.56 kB / 0.9542 GB, free: 4.465 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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 8.963e-05/0.8759, allocations: 96.47 kB / 0.9543 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000168/0.8761, allocations: 127.5 kB / 0.9544 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8761, allocations: 1.312 kB / 0.9544 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.664e-05/0.8761, allocations: 88.45 kB / 0.9545 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.8764, allocations: 8.406 kB / 0.9545 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003313/0.8768, allocations: 172.7 kB / 0.9546 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.8769, allocations: 0.6925 MB / 0.9553 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.189e-05/0.877, allocations: 3.688 kB / 0.9553 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.877, allocations: 11.12 kB / 0.9553 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.877, allocations: 0 / 0.9553 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of Templates: time 0.003389/0.8804, allocations: 0.7704 MB / 0.9561 GB, free: 2.93 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches