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.693/2.693, allocations: 287.5 MB / 302.4 MB, free: 8.18 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.001443/0.001443, allocations: 169.2 kB / 371 MB, free: 10.76 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.058/2.058, allocations: 205.4 MB / 0.6297 GB, free: 10.52 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.001151/0.001151, allocations: 91.62 kB / 0.743 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004604, allocations: 14.59 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2477, allocations: 115.3 MB / 0.9784 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9424/1.19, allocations: 137.8 MB / 1.113 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/1.191, allocations: 72.34 kB / 1.113 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006318/1.197, allocations: 1.102 MB / 1.114 GB, free: 31.42 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.925e-06/1.197, allocations: 0 / 1.114 GB, free: 31.42 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.388e-06/1.197, allocations: 0 / 1.114 GB, free: 31.42 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.000817/1.198, allocations: 374.8 kB / 1.114 GB, free: 31.05 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.198, allocations: 10.69 kB / 1.114 GB, free: 31.05 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/1.198, allocations: 10.06 kB / 1.114 GB, free: 31.05 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/1.198, allocations: 168.2 kB / 1.115 GB, free: 30.85 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/1.198, allocations: 7.781 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/1.198, allocations: 7.828 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003709/1.199, allocations: 67.3 kB / 1.115 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/1.199, allocations: 3.844 kB / 1.115 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/1.199, allocations: 0 / 1.115 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/1.199, allocations: 4 kB / 1.115 GB, free: 30.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/1.199, allocations: 56.77 kB / 1.115 GB, free: 30.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008834/1.2, allocations: 295.7 kB / 1.115 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/1.2, allocations: 67.92 kB / 1.115 GB, free: 30.51 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.64e-05/1.2, allocations: 0 / 1.115 GB, free: 30.51 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003957/1.201, allocations: 80.2 kB / 1.115 GB, free: 30.46 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 3.327e-06/1.201, allocations: 0 / 1.115 GB, free: 30.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0008895/1.202, allocations: 146.3 kB / 1.115 GB, free: 30.41 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/1.202, allocations: 55.25 kB / 1.115 GB, free: 30.35 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/1.202, allocations: 105.7 kB / 1.116 GB, free: 30.25 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/1.202, allocations: 33.45 kB / 1.116 GB, free: 30.22 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.938e-05/1.202, allocations: 88.97 kB / 1.116 GB, free: 30.14 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.684e-05/1.202, allocations: 16.5 kB / 1.116 GB, free: 30.13 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/1.202, allocations: 0 / 1.116 GB, free: 30.13 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001628/1.202, allocations: 319.6 kB / 1.116 GB, free: 29.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/1.203, allocations: 29.75 kB / 1.116 GB, free: 29.81 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/1.203, allocations: 60.91 kB / 1.116 GB, free: 29.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/1.203, allocations: 49 kB / 1.116 GB, free: 29.77 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.203, allocations: 0 / 1.116 GB, free: 29.77 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006166/1.204, allocations: 128.1 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/1.204, allocations: 3.625 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/1.204, allocations: 3.812 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/1.204, allocations: 0 / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/1.204, allocations: 23.95 kB / 1.116 GB, free: 29.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/1.204, allocations: 7.969 kB / 1.116 GB, free: 29.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/1.204, allocations: 10.19 kB / 1.116 GB, free: 29.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/1.204, allocations: 11.52 kB / 1.116 GB, free: 29.71 MB / 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 () * 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 0.0001518/1.205, allocations: 113.4 kB / 1.116 GB, free: 29.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/1.205, allocations: 6.812 kB / 1.116 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006004/1.205, allocations: 127.3 kB / 1.116 GB, free: 29.55 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/1.205, allocations: 0 / 1.116 GB, free: 29.55 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/1.205, allocations: 0.875 kB / 1.116 GB, free: 29.55 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/1.205, allocations: 3.938 kB / 1.116 GB, free: 29.54 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008411/1.206, allocations: 371.9 kB / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/1.206, allocations: 3.844 kB / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/1.206, allocations: 10.75 kB / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/1.206, allocations: 0 / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/1.206, allocations: 6.672 kB / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/1.206, allocations: 480 / 1.117 GB, free: 29.24 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.206, allocations: 4 kB / 1.117 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/1.207, allocations: 215.1 kB / 1.117 GB, free: 29.09 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/1.207, allocations: 81.14 kB / 1.117 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/1.207, allocations: 6.359 kB / 1.117 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/1.207, allocations: 17.75 kB / 1.117 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/1.207, allocations: 2.578 kB / 1.117 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/1.207, allocations: 3.781 kB / 1.117 GB, free: 28.99 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.932e-05/1.208, allocations: 89.78 kB / 1.117 GB, free: 28.91 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.11e-07/1.208, allocations: 3.938 kB / 1.117 GB, free: 28.91 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006023/1.208, allocations: 19.41 kB / 1.117 GB, free: 28.9 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: 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.0002329/1.208, allocations: 112.4 kB / 1.117 GB, free: 28.81 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005464/1.209, allocations: 82.66 kB / 1.117 GB, free: 28.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/1.209, allocations: 0 / 1.117 GB, free: 28.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000246/1.209, allocations: 39.62 kB / 1.118 GB, free: 28.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/1.21, allocations: 12.62 kB / 1.118 GB, free: 28.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004975/1.21, allocations: 141 kB / 1.118 GB, free: 28.67 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/1.211, allocations: 0.6858 MB / 1.118 GB, free: 27.98 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.587e-05/1.211, allocations: 14.86 kB / 1.118 GB, free: 27.97 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/1.211, allocations: 11.34 kB / 1.118 GB, free: 27.96 MB / 0.698 GB Notification: Performance of SimCode: time 8.82e-07/1.211, allocations: 0 / 1.118 GB, free: 27.96 MB / 0.698 GB Notification: Performance of Templates: time 0.004722/1.215, allocations: 0.6884 MB / 1.119 GB, free: 27.91 MB / 0.698 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)