Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.459/1.459, allocations: 249.5 MB / 257 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001412/0.001412, allocations: 176.9 kB / 316.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.3 MB / 0.5671 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 96.88 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.351e-05/1.313e-05, allocations: 3.984 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2039, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6664/0.8704, allocations: 132.5 MB / 1.015 GB, free: 5.285 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.8707, allocations: 74.62 kB / 1.015 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003441/0.8741, allocations: 1.186 MB / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8742, allocations: 0 / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.8742, allocations: 0 / 1.016 GB, free: 4.215 MB / 0.6355 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.0004679/0.8747, allocations: 376 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.8747, allocations: 12.03 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.8748, allocations: 3.906 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.8749, allocations: 179 kB / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.875, allocations: 4 kB / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.875, allocations: 0 / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.716e-05/0.8751, allocations: 15.88 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.639e-05/0.8752, allocations: 48.31 kB / 1.016 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.8752, allocations: 0 / 1.016 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.8752, allocations: 2.625 kB / 1.016 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.8752, allocations: 4 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000394/0.8756, allocations: 250 kB / 1.017 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.292e-05/0.8757, allocations: 39.33 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.991e-05/0.8757, allocations: 16.23 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.8758, allocations: 3.984 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.8759, allocations: 98.28 kB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.876, allocations: 0 / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002003/0.8762, allocations: 89.22 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.8762, allocations: 80.8 kB / 1.017 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.8763, allocations: 101.6 kB / 1.017 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.8763, allocations: 29.7 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.445e-05/0.8764, allocations: 87.89 kB / 1.017 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.8764, allocations: 23.34 kB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.8764, allocations: 0 / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.8765, allocations: 322.8 kB / 1.018 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.762e-05/0.8766, allocations: 19.25 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.956e-05/0.8766, allocations: 30.33 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.261e-05/0.8766, allocations: 15.8 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8767, allocations: 96 / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000123/0.8768, allocations: 85.39 kB / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.8768, allocations: 37.64 kB / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.8768, allocations: 0 / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.8769, allocations: 8.062 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.024e-05/0.8769, allocations: 3.5 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.8769, allocations: 7.984 kB / 1.018 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.877, allocations: 7.984 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-06/0.877, allocations: 4 kB / 1.018 GB, free: 2.129 MB / 0.6355 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 () * 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.0001261/0.8771, allocations: 150.9 kB / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.8771, allocations: 7.891 kB / 1.018 GB, free: 1.965 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.8772, allocations: 8.625 kB / 1.018 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.8772, allocations: 4 kB / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.8772, allocations: 0 / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.8772, allocations: 0 / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003818/0.8776, allocations: 342 kB / 1.018 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.8776, allocations: 0 / 1.018 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.064e-05/0.8776, allocations: 4 kB / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.8776, allocations: 0 / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.8777, allocations: 0 / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.8777, allocations: 0 / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8777, allocations: 8 kB / 1.018 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002076/0.8779, allocations: 200.4 kB / 1.018 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.676e-05/0.878, allocations: 85.02 kB / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.878, allocations: 0 / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.8781, allocations: 11.98 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.8782, allocations: 11.97 kB / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.8782, allocations: 4 kB / 1.019 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.182e-05/0.8783, allocations: 87.22 kB / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8783, allocations: 0 / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002319/0.8785, allocations: 12 kB / 1.019 GB, free: 1.172 MB / 0.6355 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) * 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 0.0001552/0.8787, allocations: 109.2 kB / 1.019 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001866/0.8789, allocations: 106.1 kB / 1.019 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8789, allocations: 0 / 1.019 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.025e-05/0.879, allocations: 82.91 kB / 1.019 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.8792, allocations: 23.94 kB / 1.019 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002887/0.8795, allocations: 95.55 kB / 1.019 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.8799, allocations: 0.6923 MB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.8799, allocations: 4 kB / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.88, allocations: 7.438 kB / 1.02 GB, free: 24 kB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.88, allocations: 4 kB / 1.02 GB, free: 20 kB / 0.6355 GB Notification: Performance of Templates: time 0.002894/0.8829, allocations: 0.7047 MB / 1.02 GB, free: 15.33 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches