Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.61/1.61, allocations: 289.9 MB / 297.4 MB, free: 6.422 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.001113/0.001113, allocations: 176.9 kB / 366.7 MB, free: 1.703 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.792/1.792, allocations: 205.3 MB / 0.626 GB, free: 7.145 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.0008303/0.0008301, allocations: 81.83 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.152e-05, allocations: 4 kB / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7328/0.7328, allocations: 116.3 MB / 0.9733 GB, free: 76.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2083/0.9412, allocations: 138.7 MB / 1.109 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.9415, allocations: 68.53 kB / 1.109 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.007109/0.9486, allocations: 2.251 MB / 1.111 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.744e-06/0.9487, allocations: 0 / 1.111 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.9487, allocations: 0 / 1.111 GB, free: 9.234 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006367/0.9493, allocations: 408.5 kB / 1.111 GB, free: 8.789 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.9494, allocations: 8.031 kB / 1.111 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.97e-05/0.9495, allocations: 7.906 kB / 1.111 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.9497, allocations: 175.9 kB / 1.112 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.9497, allocations: 4 kB / 1.112 GB, free: 8.559 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.9498, allocations: 12.64 kB / 1.112 GB, free: 8.547 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001167/0.9499, allocations: 20 kB / 1.112 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.95, allocations: 52.16 kB / 1.112 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.95, allocations: 0 / 1.112 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.95, allocations: 1.719 kB / 1.112 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.9501, allocations: 7.188 kB / 1.112 GB, free: 8.469 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.9507, allocations: 321.1 kB / 1.112 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.9508, allocations: 46.58 kB / 1.112 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.799e-05/0.9509, allocations: 20.92 kB / 1.112 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.9509, allocations: 0 / 1.112 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.9511, allocations: 77.17 kB / 1.112 GB, free: 7.957 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.833e-06/0.9511, allocations: 0 / 1.112 GB, free: 7.957 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0002559/0.9513, allocations: 89.56 kB / 1.112 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.9514, allocations: 59.41 kB / 1.112 GB, free: 7.793 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.647e-05/0.9515, allocations: 107.4 kB / 1.112 GB, free: 7.684 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.9516, allocations: 29.7 kB / 1.112 GB, free: 7.648 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.9517, allocations: 103.5 kB / 1.112 GB, free: 7.547 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.9517, allocations: 15.8 kB / 1.112 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.9517, allocations: 4 kB / 1.112 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.9518, allocations: 318.8 kB / 1.113 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.649e-05/0.9519, allocations: 39.98 kB / 1.113 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.886e-05/0.952, allocations: 71.03 kB / 1.113 GB, free: 7.082 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.9523, allocations: 51.89 kB / 1.113 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.9523, allocations: 0 / 1.113 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003833/0.9527, allocations: 145.6 kB / 1.113 GB, free: 6.883 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.9527, allocations: 45.69 kB / 1.113 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.9528, allocations: 0 / 1.113 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.9528, allocations: 4 kB / 1.113 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.9529, allocations: 19.92 kB / 1.113 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.9529, allocations: 0 / 1.113 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.9532, allocations: 43.97 kB / 1.113 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.9532, allocations: 11.98 kB / 1.113 GB, free: 6.754 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.907e-05/0.9533, allocations: 118.8 kB / 1.113 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.9533, allocations: 7.906 kB / 1.113 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.9535, allocations: 96.97 kB / 1.113 GB, free: 6.527 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.9535, allocations: 0 / 1.113 GB, free: 6.527 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.9535, allocations: 4 kB / 1.113 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.9535, allocations: 3.984 kB / 1.113 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.9538, allocations: 319.1 kB / 1.114 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.9539, allocations: 3.938 kB / 1.114 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-05/0.9539, allocations: 16.86 kB / 1.114 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.954, allocations: 0 / 1.114 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.954, allocations: 4 kB / 1.114 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.954, allocations: 0 / 1.114 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.954, allocations: 4 kB / 1.114 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.9542, allocations: 191.4 kB / 1.114 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.9542, allocations: 81.02 kB / 1.114 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.9543, allocations: 0 / 1.114 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.135e-05/0.9544, allocations: 15.36 kB / 1.114 GB, free: 5.824 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.9544, allocations: 12.02 kB / 1.114 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.9544, allocations: 4 kB / 1.114 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.113e-05/0.9545, allocations: 92.48 kB / 1.114 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9545, allocations: 0 / 1.114 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002762/0.9548, allocations: 31.98 kB / 1.114 GB, free: 5.688 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001706/0.955, allocations: 109.1 kB / 1.114 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002489/0.9552, allocations: 143.3 kB / 1.114 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.9552, allocations: 0 / 1.114 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.674e-05/0.9553, allocations: 32.3 kB / 1.114 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.9555, allocations: 11.95 kB / 1.114 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.9558, allocations: 106.8 kB / 1.115 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.9562, allocations: 0.6931 MB / 1.115 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.955e-05/0.9562, allocations: 7.984 kB / 1.115 GB, free: 4.527 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.9562, allocations: 11.44 kB / 1.115 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of SimCode: time 3.1e-07/0.9563, allocations: 4 kB / 1.115 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of Templates: time 0.003959/0.9602, allocations: 1.156 MB / 1.116 GB, free: 3.402 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)