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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.537/2.537, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 177.1 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.2 MB / 0.7948 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001139, allocations: 102.8 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 8.062 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2903, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.4741, allocations: 149.8 MB / 1.369 GB, free: 12.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.4743, allocations: 71.95 kB / 1.369 GB, free: 12.23 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00327/0.4776, allocations: 1.226 MB / 1.37 GB, free: 11 MB / 0.8698 GB Notification: Performance of FrontEnd: time 6.112e-06/0.4776, allocations: 3.984 kB / 1.37 GB, free: 11 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.4776, allocations: 3.938 kB / 1.37 GB, free: 10.99 MB / 0.8698 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.0004502/0.4781, allocations: 392.9 kB / 1.371 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.4781, allocations: 12.03 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.4782, allocations: 7.891 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.4783, allocations: 171 kB / 1.371 GB, free: 10.33 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.4783, allocations: 0 / 1.371 GB, free: 10.33 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.4783, allocations: 4 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.4785, allocations: 53.67 kB / 1.371 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.4785, allocations: 3.984 kB / 1.371 GB, free: 10.26 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.4785, allocations: 0 / 1.371 GB, free: 10.26 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.4785, allocations: 0 / 1.371 GB, free: 10.26 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.332e-05/0.4786, allocations: 23.94 kB / 1.371 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.479, allocations: 268.9 kB / 1.371 GB, free: 9.926 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.698e-05/0.4791, allocations: 38.56 kB / 1.371 GB, free: 9.879 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.4791, allocations: 7.938 kB / 1.371 GB, free: 9.871 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.4792, allocations: 113.1 kB / 1.371 GB, free: 9.742 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.4793, allocations: 0 / 1.371 GB, free: 9.742 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.000295/0.4796, allocations: 208.5 kB / 1.372 GB, free: 9.508 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.4796, allocations: 85.06 kB / 1.372 GB, free: 9.406 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.931e-05/0.4797, allocations: 108.9 kB / 1.372 GB, free: 9.293 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.4797, allocations: 29.7 kB / 1.372 GB, free: 9.258 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.4798, allocations: 88.05 kB / 1.372 GB, free: 9.168 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.4798, allocations: 19.78 kB / 1.372 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.4798, allocations: 4 kB / 1.372 GB, free: 9.145 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.4799, allocations: 314.8 kB / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.09e-05/0.48, allocations: 23.98 kB / 1.372 GB, free: 8.805 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.475e-05/0.48, allocations: 30.56 kB / 1.372 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.707e-05/0.4801, allocations: 46.09 kB / 1.372 GB, free: 8.715 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4801, allocations: 0 / 1.372 GB, free: 8.715 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001522/0.4802, allocations: 123.8 kB / 1.373 GB, free: 8.582 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.4803, allocations: 37.7 kB / 1.373 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.4803, allocations: 0 / 1.373 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.4803, allocations: 4 kB / 1.373 GB, free: 8.535 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.133e-05/0.4804, allocations: 11.86 kB / 1.373 GB, free: 8.523 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.4804, allocations: 4 kB / 1.373 GB, free: 8.52 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.4804, allocations: 7.953 kB / 1.373 GB, free: 8.512 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.4805, allocations: 8 kB / 1.373 GB, free: 8.504 MB / 0.8698 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.4806, allocations: 151.5 kB / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.4806, allocations: 7.906 kB / 1.373 GB, free: 8.332 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.42e-05/0.4806, allocations: 4.375 kB / 1.373 GB, free: 8.328 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.4806, allocations: 0 / 1.373 GB, free: 8.328 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4806, allocations: 4 kB / 1.373 GB, free: 8.324 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4806, allocations: 0 / 1.373 GB, free: 8.324 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.481, allocations: 396.2 kB / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.481, allocations: 7.984 kB / 1.373 GB, free: 7.867 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.481, allocations: 4 kB / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.481, allocations: 0 / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.4811, allocations: 11.94 kB / 1.373 GB, free: 7.852 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4811, allocations: 4 kB / 1.373 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4811, allocations: 3.953 kB / 1.373 GB, free: 7.844 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.4813, allocations: 225.1 kB / 1.373 GB, free: 7.602 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.738e-05/0.4813, allocations: 85.02 kB / 1.373 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.4814, allocations: 0 / 1.373 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.4815, allocations: 19.98 kB / 1.373 GB, free: 7.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.4815, allocations: 11.94 kB / 1.373 GB, free: 7.469 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.4815, allocations: 4 kB / 1.373 GB, free: 7.465 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.033e-05/0.4816, allocations: 91.27 kB / 1.374 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4816, allocations: 0 / 1.374 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002094/0.4818, allocations: 12 kB / 1.374 GB, free: 7.363 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.971e-05/0.4819, allocations: 107 kB / 1.374 GB, free: 7.246 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001598/0.4821, allocations: 111.5 kB / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4821, allocations: 3.938 kB / 1.374 GB, free: 7.121 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.199e-05/0.4822, allocations: 99.31 kB / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/0.4824, allocations: 12.61 kB / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.4827, allocations: 164.4 kB / 1.374 GB, free: 6.812 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.483, allocations: 0.6927 MB / 1.375 GB, free: 6.094 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.704e-05/0.483, allocations: 3.984 kB / 1.375 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.483, allocations: 11.44 kB / 1.375 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of SimCode: time 2.5e-07/0.483, allocations: 0 / 1.375 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of Templates: time 0.002453/0.4855, allocations: 0.7303 MB / 1.375 GB, free: 5.352 MB / 0.8698 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","../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches