Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.749/1.749, allocations: 293 MB / 309 MB, free: 4.82 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.0009256/0.0009256, allocations: 184.2 kB / 378.7 MB, free: 1.02 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.712/1.712, allocations: 205.4 MB / 0.6383 GB, free: 8.219 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.0007572/0.0007572, allocations: 90.3 kB / 0.7527 GB, free: 62.74 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005714/0.0005718, allocations: 12 kB / 0.8768 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3296, allocations: 116.4 MB / 0.9905 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7563/1.086, allocations: 139 MB / 1.126 GB, free: 34.72 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/1.086, allocations: 77.41 kB / 1.126 GB, free: 34.66 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003335/1.09, allocations: 1.113 MB / 1.127 GB, free: 33.8 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.615e-06/1.09, allocations: 0 / 1.127 GB, free: 33.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.468e-06/1.09, allocations: 0 / 1.127 GB, free: 33.8 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005208/1.09, allocations: 384.8 kB / 1.128 GB, free: 33.4 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/1.09, allocations: 12.03 kB / 1.128 GB, free: 33.39 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.623e-05/1.09, allocations: 0.9375 kB / 1.128 GB, free: 33.39 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/1.091, allocations: 168.3 kB / 1.128 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/1.091, allocations: 4.938 kB / 1.128 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/1.091, allocations: 8.375 kB / 1.128 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/1.091, allocations: 71.95 kB / 1.128 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/1.091, allocations: 192 / 1.128 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.091, allocations: 4.453 kB / 1.128 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/1.091, allocations: 0 / 1.128 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/1.091, allocations: 62.11 kB / 1.128 GB, free: 33.05 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/1.092, allocations: 285.9 kB / 1.128 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/1.092, allocations: 69.91 kB / 1.128 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.317e-05/1.092, allocations: 36.59 kB / 1.128 GB, free: 32.65 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/1.092, allocations: 7.562 kB / 1.128 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/1.092, allocations: 86.39 kB / 1.129 GB, free: 32.56 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.854e-06/1.092, allocations: 0 / 1.129 GB, free: 32.56 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0004053/1.093, allocations: 139.7 kB / 1.129 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/1.093, allocations: 51.41 kB / 1.129 GB, free: 32.37 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.318e-05/1.093, allocations: 109.2 kB / 1.129 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/1.093, allocations: 29.7 kB / 1.129 GB, free: 32.22 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.596e-05/1.093, allocations: 87.61 kB / 1.129 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/1.093, allocations: 15.72 kB / 1.129 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/1.093, allocations: 4 kB / 1.129 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.415e-05/1.093, allocations: 322.2 kB / 1.129 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.279e-05/1.093, allocations: 31.64 kB / 1.129 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/1.093, allocations: 71.55 kB / 1.129 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/1.093, allocations: 103.6 kB / 1.129 GB, free: 31.59 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.093, allocations: 4 kB / 1.129 GB, free: 31.59 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002525/1.094, allocations: 118.7 kB / 1.13 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/1.094, allocations: 8.781 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/1.094, allocations: 5.312 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/1.094, allocations: 0 / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/1.094, allocations: 23.61 kB / 1.13 GB, free: 31.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/1.094, allocations: 0.5469 kB / 1.13 GB, free: 31.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.28e-05/1.094, allocations: 11.61 kB / 1.13 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/1.094, allocations: 7.938 kB / 1.13 GB, free: 31.43 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.402e-05/1.094, allocations: 129.1 kB / 1.13 GB, free: 31.3 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.79e-05/1.094, allocations: 8.594 kB / 1.13 GB, free: 31.29 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002753/1.094, allocations: 120 kB / 1.13 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/1.094, allocations: 4 kB / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.094, allocations: 0 / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/1.094, allocations: 4 kB / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000381/1.095, allocations: 371.4 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/1.095, allocations: 4.625 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.576e-05/1.095, allocations: 16 kB / 1.13 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/1.095, allocations: 0.9844 kB / 1.13 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/1.095, allocations: 4.109 kB / 1.13 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/1.095, allocations: 0 / 1.13 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.095, allocations: 4 kB / 1.13 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/1.095, allocations: 213.9 kB / 1.13 GB, free: 30.56 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/1.095, allocations: 77.77 kB / 1.131 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/1.095, allocations: 4.078 kB / 1.131 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-05/1.095, allocations: 12 kB / 1.131 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/1.095, allocations: 3.469 kB / 1.131 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/1.095, allocations: 8.438 kB / 1.131 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.567e-05/1.095, allocations: 91.34 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/1.095, allocations: 0 / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002445/1.096, allocations: 20.56 kB / 1.131 GB, free: 30.34 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001755/1.096, allocations: 108.5 kB / 1.131 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002541/1.096, allocations: 81.34 kB / 1.131 GB, free: 30.16 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.096, allocations: 0 / 1.131 GB, free: 30.16 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/1.096, allocations: 39.02 kB / 1.131 GB, free: 30.13 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/1.096, allocations: 13.19 kB / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003898/1.097, allocations: 157.7 kB / 1.131 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/1.097, allocations: 0.6844 MB / 1.132 GB, free: 29.24 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.773e-05/1.097, allocations: 7.375 kB / 1.132 GB, free: 29.24 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/1.097, allocations: 8.375 kB / 1.132 GB, free: 29.23 MB / 0.7292 GB Notification: Performance of SimCode: time 3.11e-07/1.097, allocations: 0 / 1.132 GB, free: 29.23 MB / 0.7292 GB Notification: Performance of Templates: time 0.003156/1.1, allocations: 0.7194 MB / 1.132 GB, free: 28.83 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)