Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.867/1.867, allocations: 292.6 MB / 307.6 MB, free: 5.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001401/0.001401, allocations: 185 kB / 377.1 MB, free: 1.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.4 MB / 0.6367 GB, free: 8.609 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008473/0.0008471, allocations: 94.14 kB / 0.751 GB, free: 63.02 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003387, allocations: 8 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2538, allocations: 116.3 MB / 0.9883 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6202/0.874, allocations: 139.6 MB / 1.125 GB, free: 35.16 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.8744, allocations: 78.03 kB / 1.125 GB, free: 35.1 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.005162/0.8796, allocations: 1.182 MB / 1.126 GB, free: 34.18 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8796, allocations: 0.5469 kB / 1.126 GB, free: 34.18 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.8796, allocations: 0 / 1.126 GB, free: 34.18 MB / 0.7292 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.000621/0.8802, allocations: 394.1 kB / 1.126 GB, free: 33.76 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.8803, allocations: 12.02 kB / 1.126 GB, free: 33.75 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.8804, allocations: 9.969 kB / 1.126 GB, free: 33.74 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.8805, allocations: 174.5 kB / 1.126 GB, free: 33.53 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.8806, allocations: 0.6875 kB / 1.126 GB, free: 33.53 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.8806, allocations: 4.609 kB / 1.126 GB, free: 33.53 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.8808, allocations: 60.62 kB / 1.127 GB, free: 33.47 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.8808, allocations: 0 / 1.127 GB, free: 33.47 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.8809, allocations: 0.5625 kB / 1.127 GB, free: 33.47 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.8809, allocations: 1.453 kB / 1.127 GB, free: 33.47 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.236e-05/0.881, allocations: 23.47 kB / 1.127 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.8815, allocations: 264.5 kB / 1.127 GB, free: 33.16 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.8816, allocations: 42.55 kB / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.8816, allocations: 6.234 kB / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.8818, allocations: 103.8 kB / 1.127 GB, free: 33 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=9): time 2.394e-06/0.8819, allocations: 0.9375 kB / 1.127 GB, free: 33 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9): time 0.0004021/0.8823, allocations: 223.6 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.8823, allocations: 85.11 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.8824, allocations: 101.3 kB / 1.127 GB, free: 32.56 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.8825, allocations: 25.7 kB / 1.127 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.075e-05/0.8825, allocations: 88.14 kB / 1.127 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.8826, allocations: 23.36 kB / 1.127 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-06/0.8826, allocations: 0 / 1.127 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.8827, allocations: 322.8 kB / 1.128 GB, free: 32.1 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.959e-05/0.8827, allocations: 16.41 kB / 1.128 GB, free: 32.09 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.309e-05/0.8828, allocations: 34 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.34e-05/0.8829, allocations: 49.64 kB / 1.128 GB, free: 31.99 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.8829, allocations: 0 / 1.128 GB, free: 31.99 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002252/0.8831, allocations: 131.3 kB / 1.128 GB, free: 31.86 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.8832, allocations: 38.2 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.8832, allocations: 0.5 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.8832, allocations: 1.125 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.322e-05/0.8833, allocations: 4 kB / 1.128 GB, free: 31.81 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.8833, allocations: 0 / 1.128 GB, free: 31.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.8835, allocations: 12.23 kB / 1.128 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.8835, allocations: 8 kB / 1.128 GB, free: 31.8 MB / 0.7292 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.0001041/0.8836, allocations: 154.8 kB / 1.128 GB, free: 31.63 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.8836, allocations: 15.36 kB / 1.128 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.8837, allocations: 8.375 kB / 1.128 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.8837, allocations: 0 / 1.128 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.8837, allocations: 0.7031 kB / 1.128 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.8837, allocations: 0 / 1.128 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.8842, allocations: 397.8 kB / 1.129 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.8842, allocations: 0.9375 kB / 1.129 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.556e-05/0.8842, allocations: 8 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.8842, allocations: 4.656 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.8843, allocations: 0 / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.8843, allocations: 4.766 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.8843, allocations: 0 / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.8846, allocations: 234.2 kB / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.8846, allocations: 81.11 kB / 1.129 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.8846, allocations: 3.938 kB / 1.129 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.8848, allocations: 19.38 kB / 1.129 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.8849, allocations: 8.625 kB / 1.129 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.8849, allocations: 4 kB / 1.129 GB, free: 30.81 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.288e-05/0.885, allocations: 87.58 kB / 1.129 GB, free: 30.73 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.6e-07/0.885, allocations: 0 / 1.129 GB, free: 30.73 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004225/0.8854, allocations: 16 kB / 1.129 GB, free: 30.71 MB / 0.7292 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 0.0001065/0.8855, allocations: 101.7 kB / 1.129 GB, free: 30.61 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002348/0.8858, allocations: 118.2 kB / 1.129 GB, free: 30.49 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8858, allocations: 0 / 1.129 GB, free: 30.49 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.8859, allocations: 90.97 kB / 1.129 GB, free: 30.39 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.8863, allocations: 19.56 kB / 1.129 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003989/0.8867, allocations: 161.4 kB / 1.13 GB, free: 30.2 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.8869, allocations: 0.6918 MB / 1.13 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.666e-05/0.8869, allocations: 4 kB / 1.13 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.422e-05/0.887, allocations: 11.44 kB / 1.13 GB, free: 29.48 MB / 0.7292 GB Notification: Performance of SimCode: time 6.31e-07/0.887, allocations: 0 / 1.13 GB, free: 29.48 MB / 0.7292 GB Notification: Performance of Templates: time 0.004125/0.8911, allocations: 0.7251 MB / 1.131 GB, free: 29.08 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)