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.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.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.4-maint.8.1.x/package.mo): time 1.541/1.541, allocations: 289.9 MB / 297.4 MB, free: 6.383 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.001048/0.001048, allocations: 180.5 kB / 366.7 MB, free: 1.652 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.544/1.544, allocations: 205.2 MB / 0.626 GB, free: 7.172 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.0008872/0.0008873, allocations: 85.3 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.932e-05/1.934e-05, allocations: 4 kB / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7619/0.7619, allocations: 116.3 MB / 0.9733 GB, free: 76.31 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.211/0.973, allocations: 138.2 MB / 1.108 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.9733, allocations: 67.97 kB / 1.108 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003317/0.9766, allocations: 1.101 MB / 1.109 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.372e-06/0.9767, allocations: 0.5 kB / 1.109 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.9767, allocations: 0 / 1.109 GB, free: 10.87 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004942/0.9772, allocations: 368.5 kB / 1.11 GB, free: 10.47 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.9772, allocations: 12.5 kB / 1.11 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.9773, allocations: 12.56 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.9774, allocations: 171 kB / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.9775, allocations: 1.531 kB / 1.11 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.9775, allocations: 4 kB / 1.11 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.61e-05/0.9776, allocations: 13.94 kB / 1.11 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.9777, allocations: 50.25 kB / 1.11 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.9777, allocations: 0 / 1.11 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.9777, allocations: 0.6562 kB / 1.11 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.9778, allocations: 8.797 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.9783, allocations: 272.3 kB / 1.11 GB, free: 9.859 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.762e-05/0.9784, allocations: 46.56 kB / 1.11 GB, free: 9.805 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.9784, allocations: 21.33 kB / 1.11 GB, free: 9.785 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.9785, allocations: 0 / 1.11 GB, free: 9.785 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/0.9786, allocations: 63.47 kB / 1.11 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.9786, allocations: 0 / 1.11 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001965/0.9788, allocations: 69.62 kB / 1.11 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.9789, allocations: 55.39 kB / 1.11 GB, free: 9.57 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.294e-05/0.9789, allocations: 97.62 kB / 1.111 GB, free: 9.469 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.979, allocations: 26.36 kB / 1.111 GB, free: 9.438 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.979, allocations: 84.05 kB / 1.111 GB, free: 9.352 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.9791, allocations: 26.08 kB / 1.111 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.9791, allocations: 0 / 1.111 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.9792, allocations: 320.7 kB / 1.111 GB, free: 9.008 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.098e-05/0.9792, allocations: 12 kB / 1.111 GB, free: 8.996 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.441e-05/0.9793, allocations: 52.44 kB / 1.111 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.9795, allocations: 29.95 kB / 1.111 GB, free: 8.91 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.9795, allocations: 0 / 1.111 GB, free: 8.91 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001935/0.9797, allocations: 97.5 kB / 1.111 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.9797, allocations: 6.219 kB / 1.111 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.9797, allocations: 0 / 1.111 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.9798, allocations: 7.781 kB / 1.111 GB, free: 8.801 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.9799, allocations: 19.98 kB / 1.111 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.9799, allocations: 1.25 kB / 1.111 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.502e-05/0.98, allocations: 15.92 kB / 1.111 GB, free: 8.766 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.98, allocations: 6.5 kB / 1.111 GB, free: 8.762 MB / 0.7136 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 () * 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.127e-05/0.9801, allocations: 104.9 kB / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.9801, allocations: 8.125 kB / 1.111 GB, free: 8.645 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.9803, allocations: 85.39 kB / 1.111 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.9803, allocations: 0 / 1.111 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.9803, allocations: 0 / 1.111 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.9803, allocations: 0 / 1.111 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.9806, allocations: 311 kB / 1.112 GB, free: 8.207 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.9806, allocations: 0 / 1.112 GB, free: 8.207 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.115e-05/0.9807, allocations: 17.48 kB / 1.112 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.9807, allocations: 4.047 kB / 1.112 GB, free: 8.188 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.9807, allocations: 3.984 kB / 1.112 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.9807, allocations: 0 / 1.112 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.9807, allocations: 0 / 1.112 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.9809, allocations: 175.4 kB / 1.112 GB, free: 7.996 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.896e-05/0.981, allocations: 84.95 kB / 1.112 GB, free: 7.895 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.981, allocations: 3.984 kB / 1.112 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/0.9811, allocations: 12 kB / 1.112 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.9811, allocations: 11.98 kB / 1.112 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.9812, allocations: 0 / 1.112 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.066e-05/0.9812, allocations: 85.84 kB / 1.112 GB, free: 7.785 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9812, allocations: 4 kB / 1.112 GB, free: 7.781 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002297/0.9814, allocations: 23.98 kB / 1.112 GB, free: 7.758 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0001741/0.9816, allocations: 99.25 kB / 1.112 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001148/0.9817, allocations: 47.98 kB / 1.112 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.9818, allocations: 0 / 1.112 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.435e-05/0.9818, allocations: 23.94 kB / 1.112 GB, free: 7.582 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.982, allocations: 7.953 kB / 1.112 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002491/0.9823, allocations: 79.94 kB / 1.112 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.9825, allocations: 0.6846 MB / 1.113 GB, free: 6.762 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.235e-05/0.9826, allocations: 8.375 kB / 1.113 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.795e-05/0.9826, allocations: 19.42 kB / 1.113 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.9826, allocations: 0 / 1.113 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of Templates: time 0.002763/0.9854, allocations: 0.6727 MB / 1.114 GB, free: 6.105 MB / 0.7136 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)