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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.77/2.77, allocations: 285 MB / 292.5 MB, free: 10.48 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.00146/0.001459, allocations: 192.8 kB / 360.7 MB, free: 7.219 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.079/2.079, allocations: 205.3 MB / 0.6192 GB, free: 12.12 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001067, allocations: 85.73 kB / 0.7322 GB, free: 44.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.475e-05, allocations: 4 kB / 0.8509 GB, free: 3.336 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8125/0.8126, allocations: 115.3 MB / 0.9634 GB, free: 78.6 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2375/1.05, allocations: 137.1 MB / 1.097 GB, free: 3.375 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/1.051, allocations: 69.62 kB / 1.097 GB, free: 3.309 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004974/1.056, allocations: 1.101 MB / 1.098 GB, free: 2.23 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.603e-06/1.056, allocations: 2.734 kB / 1.098 GB, free: 2.23 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.374e-06/1.056, allocations: 0.5938 kB / 1.098 GB, free: 2.23 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006497/1.056, allocations: 371.9 kB / 1.099 GB, free: 1.828 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/1.056, allocations: 12.53 kB / 1.099 GB, free: 1.816 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/1.056, allocations: 6.5 kB / 1.099 GB, free: 1.812 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/1.057, allocations: 167 kB / 1.099 GB, free: 1.609 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/1.057, allocations: 0 / 1.099 GB, free: 1.609 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/1.057, allocations: 4 kB / 1.099 GB, free: 1.605 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001203/1.057, allocations: 16.5 kB / 1.099 GB, free: 1.59 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/1.057, allocations: 53.44 kB / 1.099 GB, free: 1.535 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/1.057, allocations: 0 / 1.099 GB, free: 1.535 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/1.057, allocations: 7.875 kB / 1.099 GB, free: 1.531 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/1.057, allocations: 4.875 kB / 1.099 GB, free: 1.527 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006522/1.058, allocations: 275.6 kB / 1.099 GB, free: 1.223 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/1.058, allocations: 44.5 kB / 1.099 GB, free: 1.172 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.299e-05/1.058, allocations: 16.98 kB / 1.099 GB, free: 1.152 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/1.058, allocations: 0 / 1.099 GB, free: 1.152 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001417/1.058, allocations: 65.38 kB / 1.099 GB, free: 1.078 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.843e-06/1.058, allocations: 0 / 1.099 GB, free: 1.078 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0002403/1.058, allocations: 65.69 kB / 1.1 GB, free: 1.008 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/1.058, allocations: 56.27 kB / 1.1 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/1.058, allocations: 98.5 kB / 1.1 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/1.058, allocations: 28.55 kB / 1.1 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.805e-05/1.059, allocations: 91.98 kB / 1.1 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/1.059, allocations: 23.73 kB / 1.1 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/1.059, allocations: 0 / 1.1 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.059, allocations: 314.8 kB / 1.1 GB, free: 384 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.962e-05/1.059, allocations: 12 kB / 1.1 GB, free: 372 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.602e-05/1.059, allocations: 56.41 kB / 1.1 GB, free: 304 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/1.059, allocations: 26.55 kB / 1.1 GB, free: 280 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/1.059, allocations: 3.688 kB / 1.1 GB, free: 280 kB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003164/1.059, allocations: 93.5 kB / 1.1 GB, free: 180 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/1.059, allocations: 4 kB / 1.1 GB, free: 176 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/1.059, allocations: 4 kB / 1.1 GB, free: 172 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/1.06, allocations: 0 / 1.1 GB, free: 172 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/1.06, allocations: 23.92 kB / 1.1 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/1.06, allocations: 4.125 kB / 1.1 GB, free: 144 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/1.06, allocations: 11.98 kB / 1.1 GB, free: 132 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/1.06, allocations: 4 kB / 1.1 GB, free: 128 kB / 0.698 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 0.000119/1.06, allocations: 117.7 kB / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/1.06, allocations: 0 / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/1.06, allocations: 90.2 kB / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/1.06, allocations: 3.75 kB / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.06, allocations: 7.5 kB / 1.101 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/1.06, allocations: 0 / 1.101 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/1.061, allocations: 303.1 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.061, allocations: 0 / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/1.061, allocations: 19.98 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/1.061, allocations: 3.938 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/1.061, allocations: 0 / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.061, allocations: 0 / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/1.061, allocations: 4 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/1.061, allocations: 170.1 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-05/1.061, allocations: 84.95 kB / 1.101 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/1.061, allocations: 3.984 kB / 1.101 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/1.062, allocations: 8 kB / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/1.062, allocations: 7.984 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/1.062, allocations: 4 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.873e-05/1.062, allocations: 87.28 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.61e-07/1.062, allocations: 3.938 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003583/1.062, allocations: 15.98 kB / 1.101 GB, free: 15.12 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.0002091/1.062, allocations: 111.8 kB / 1.101 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001739/1.063, allocations: 43.98 kB / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/1.063, allocations: 0 / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.849e-05/1.063, allocations: 19.94 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/1.063, allocations: 13.41 kB / 1.101 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003164/1.063, allocations: 87.7 kB / 1.101 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/1.064, allocations: 0.6846 MB / 1.102 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.711e-05/1.064, allocations: 8.172 kB / 1.102 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/1.064, allocations: 11.44 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of SimCode: time 7.81e-07/1.064, allocations: 0 / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of Templates: time 0.006352/1.07, allocations: 0.6633 MB / 1.103 GB, free: 13.47 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)