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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.714/1.714, allocations: 293 MB / 309 MB, free: 4.789 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.0009504/0.0009504, allocations: 176.5 kB / 378.7 MB, free: 0.9961 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.573/1.573, allocations: 205.4 MB / 0.6383 GB, free: 8.188 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.0007458/0.0007459, allocations: 92.7 kB / 0.7527 GB, free: 62.85 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003756, allocations: 12 kB / 0.8768 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2741, allocations: 116.4 MB / 0.9904 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7251/0.9993, allocations: 139.7 MB / 1.127 GB, free: 34.21 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.9996, allocations: 70.27 kB / 1.127 GB, free: 34.16 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003033/1.003, allocations: 1.195 MB / 1.128 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.036e-06/1.003, allocations: 3.031 kB / 1.128 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.013e-06/1.003, allocations: 4 kB / 1.128 GB, free: 33.22 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.0004246/1.003, allocations: 391.8 kB / 1.128 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/1.003, allocations: 12.72 kB / 1.128 GB, free: 32.78 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/1.003, allocations: 8.844 kB / 1.128 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/1.003, allocations: 163.4 kB / 1.129 GB, free: 32.58 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/1.003, allocations: 4.375 kB / 1.129 GB, free: 32.57 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/1.003, allocations: 0.875 kB / 1.129 GB, free: 32.57 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/1.003, allocations: 56.81 kB / 1.129 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/1.003, allocations: 192 / 1.129 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/1.004, allocations: 7.938 kB / 1.129 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/1.004, allocations: 3.609 kB / 1.129 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.138e-05/1.004, allocations: 16.16 kB / 1.129 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003619/1.004, allocations: 274.5 kB / 1.129 GB, free: 32.2 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 7.088e-05/1.004, allocations: 46.97 kB / 1.129 GB, free: 32.15 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.475e-05/1.004, allocations: 16.98 kB / 1.129 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/1.004, allocations: 3.938 kB / 1.129 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/1.004, allocations: 107.2 kB / 1.129 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/1.004, allocations: 0 / 1.129 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9): time 0.0002469/1.005, allocations: 141.3 kB / 1.129 GB, free: 31.87 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/1.005, allocations: 77.11 kB / 1.129 GB, free: 31.78 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.671e-05/1.005, allocations: 113.4 kB / 1.129 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/1.005, allocations: 26.55 kB / 1.129 GB, free: 31.63 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/1.005, allocations: 88.12 kB / 1.13 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/1.005, allocations: 27.11 kB / 1.13 GB, free: 31.52 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/1.005, allocations: 8 kB / 1.13 GB, free: 31.51 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.814e-05/1.005, allocations: 314.8 kB / 1.13 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.917e-05/1.005, allocations: 15.42 kB / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/1.005, allocations: 34.05 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.822e-05/1.005, allocations: 118.1 kB / 1.13 GB, free: 31.01 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.005, allocations: 7.938 kB / 1.13 GB, free: 31 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001254/1.005, allocations: 115.7 kB / 1.13 GB, free: 30.88 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/1.005, allocations: 34.8 kB / 1.13 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/1.005, allocations: 0 / 1.13 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/1.005, allocations: 0 / 1.13 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.226e-05/1.005, allocations: 8.219 kB / 1.13 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/1.005, allocations: 4.484 kB / 1.13 GB, free: 30.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.901e-05/1.005, allocations: 15.91 kB / 1.13 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/1.005, allocations: 4 kB / 1.13 GB, free: 30.81 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 7.679e-05/1.005, allocations: 160.1 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/1.005, allocations: 4.5 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/1.005, allocations: 13.8 kB / 1.13 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/1.005, allocations: 0 / 1.13 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.005, allocations: 0 / 1.13 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/1.005, allocations: 3.609 kB / 1.13 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/1.006, allocations: 399.2 kB / 1.131 GB, free: 30.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/1.006, allocations: 0 / 1.131 GB, free: 30.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-06/1.006, allocations: 4 kB / 1.131 GB, free: 30.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/1.006, allocations: 3.938 kB / 1.131 GB, free: 30.2 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/1.006, allocations: 4.5 kB / 1.131 GB, free: 30.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.006, allocations: 0 / 1.131 GB, free: 30.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/1.006, allocations: 0 / 1.131 GB, free: 30.19 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/1.006, allocations: 236.6 kB / 1.131 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/1.006, allocations: 89 kB / 1.131 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/1.006, allocations: 5.125 kB / 1.131 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/1.006, allocations: 15.33 kB / 1.131 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/1.006, allocations: 8.875 kB / 1.131 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/1.006, allocations: 0.75 kB / 1.131 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.042e-05/1.006, allocations: 92.31 kB / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/1.006, allocations: 0 / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002096/1.006, allocations: 16 kB / 1.131 GB, free: 29.72 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.000104/1.007, allocations: 110.4 kB / 1.131 GB, free: 29.61 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001564/1.007, allocations: 110.2 kB / 1.131 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.007, allocations: 4 kB / 1.131 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 6.289e-05/1.007, allocations: 86.67 kB / 1.132 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/1.007, allocations: 17.3 kB / 1.132 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/1.007, allocations: 157.8 kB / 1.132 GB, free: 29.21 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/1.008, allocations: 0.6844 MB / 1.132 GB, free: 28.51 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.812e-05/1.008, allocations: 7.609 kB / 1.132 GB, free: 28.5 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.364e-05/1.008, allocations: 11.44 kB / 1.132 GB, free: 28.5 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/1.008, allocations: 0 / 1.132 GB, free: 28.5 MB / 0.7292 GB Notification: Performance of Templates: time 0.002946/1.011, allocations: 0.7367 MB / 1.133 GB, free: 28.09 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)