Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.92/2.92, allocations: 287.5 MB / 302.4 MB, free: 8.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001477/0.001476, allocations: 176 kB / 371 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.4 MB / 0.6297 GB, free: 10.5 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 94.8 kB / 0.743 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006349/0.0006351, allocations: 12.28 kB / 0.8658 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2264, allocations: 115.3 MB / 0.9784 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.936/1.162, allocations: 137.9 MB / 1.113 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003559/1.163, allocations: 73.06 kB / 1.113 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007989/1.171, allocations: 1.155 MB / 1.114 GB, free: 31.45 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.277e-06/1.171, allocations: 0 / 1.114 GB, free: 31.45 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.257e-05/1.171, allocations: 3.781 kB / 1.114 GB, free: 31.45 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0009213/1.172, allocations: 376.6 kB / 1.115 GB, free: 31.09 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/1.172, allocations: 11.62 kB / 1.115 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/1.172, allocations: 7.719 kB / 1.115 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/1.172, allocations: 172.5 kB / 1.115 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/1.172, allocations: 7.406 kB / 1.115 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/1.172, allocations: 11.77 kB / 1.115 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/1.173, allocations: 83.03 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/1.173, allocations: 0 / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/1.173, allocations: 1.266 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/1.173, allocations: 0 / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005246/1.174, allocations: 71.45 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/1.175, allocations: 335.5 kB / 1.115 GB, free: 30.57 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/1.175, allocations: 86.14 kB / 1.115 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/1.175, allocations: 1.547 kB / 1.115 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/1.176, allocations: 98.31 kB / 1.115 GB, free: 30.48 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 4.007e-06/1.176, allocations: 0 / 1.115 GB, free: 30.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.001157/1.177, allocations: 192.2 kB / 1.116 GB, free: 30.44 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/1.177, allocations: 60.28 kB / 1.116 GB, free: 30.38 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/1.177, allocations: 103.7 kB / 1.116 GB, free: 30.28 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/1.177, allocations: 31.33 kB / 1.116 GB, free: 30.25 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/1.177, allocations: 89.39 kB / 1.116 GB, free: 30.16 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/1.177, allocations: 32.31 kB / 1.116 GB, free: 30.14 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/1.177, allocations: 0 / 1.116 GB, free: 30.14 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001585/1.178, allocations: 320.5 kB / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/1.178, allocations: 49.19 kB / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/1.178, allocations: 63.05 kB / 1.116 GB, free: 29.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/1.179, allocations: 57.11 kB / 1.116 GB, free: 29.79 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/1.179, allocations: 0 / 1.116 GB, free: 29.79 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007928/1.179, allocations: 147 kB / 1.117 GB, free: 29.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/1.18, allocations: 7.844 kB / 1.117 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/1.18, allocations: 4 kB / 1.117 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/1.18, allocations: 3.875 kB / 1.117 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/1.18, allocations: 25.44 kB / 1.117 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/1.18, allocations: 3.984 kB / 1.117 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/1.18, allocations: 14.73 kB / 1.117 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/1.18, allocations: 3.969 kB / 1.117 GB, free: 29.74 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001805/1.18, allocations: 131.9 kB / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/1.18, allocations: 7.875 kB / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008046/1.181, allocations: 151.2 kB / 1.117 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/1.181, allocations: 2.953 kB / 1.117 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.181, allocations: 0 / 1.117 GB, free: 29.57 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/1.181, allocations: 11.75 kB / 1.117 GB, free: 29.56 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/1.182, allocations: 412.5 kB / 1.117 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/1.183, allocations: 0 / 1.117 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/1.183, allocations: 21.75 kB / 1.117 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/1.183, allocations: 0 / 1.117 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/1.183, allocations: 2.766 kB / 1.117 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.183, allocations: 3.938 kB / 1.117 GB, free: 29.25 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.183, allocations: 0 / 1.117 GB, free: 29.25 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008041/1.184, allocations: 251.9 kB / 1.118 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/1.184, allocations: 83.64 kB / 1.118 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/1.184, allocations: 3.875 kB / 1.118 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/1.184, allocations: 13.36 kB / 1.118 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/1.184, allocations: 6.422 kB / 1.118 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/1.184, allocations: 6.75 kB / 1.118 GB, free: 29.01 MB / 0.698 GB Notification: Performance of sorting global known variables: time 8.028e-05/1.184, allocations: 86.22 kB / 1.118 GB, free: 28.93 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.41e-07/1.184, allocations: 0 / 1.118 GB, free: 28.93 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006099/1.185, allocations: 32.62 kB / 1.118 GB, free: 28.92 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002626/1.185, allocations: 112.6 kB / 1.118 GB, free: 28.83 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000684/1.186, allocations: 106.8 kB / 1.118 GB, free: 28.82 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/1.186, allocations: 0 / 1.118 GB, free: 28.82 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003258/1.186, allocations: 51.89 kB / 1.118 GB, free: 28.82 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/1.187, allocations: 13.48 kB / 1.118 GB, free: 28.82 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006566/1.187, allocations: 171.5 kB / 1.118 GB, free: 28.69 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/1.188, allocations: 0.6883 MB / 1.119 GB, free: 27.99 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.326e-05/1.188, allocations: 10.53 kB / 1.119 GB, free: 27.99 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/1.188, allocations: 11.25 kB / 1.119 GB, free: 27.98 MB / 0.698 GB Notification: Performance of SimCode: time 1.232e-06/1.188, allocations: 288 / 1.119 GB, free: 27.98 MB / 0.698 GB Notification: Performance of Templates: time 0.006369/1.194, allocations: 0.8645 MB / 1.12 GB, free: 27.91 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)