Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.566/1.566, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009605/0.0009605, allocations: 183.5 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.2 MB / 0.6626 GB, free: 4.352 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007565/0.0007565, allocations: 93.23 kB / 0.7808 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 15.98 kB / 0.9088 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5647/0.565, allocations: 120.3 MB / 1.026 GB, free: 57.07 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.7439, allocations: 141.2 MB / 1.164 GB, free: 1.082 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.7442, allocations: 72.42 kB / 1.164 GB, free: 1.012 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003431/0.7476, allocations: 1.115 MB / 1.165 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.605e-06/0.7477, allocations: 3.938 kB / 1.165 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.7477, allocations: 0 / 1.165 GB, free: 15.92 MB / 0.7448 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.0005337/0.7482, allocations: 378.1 kB / 1.166 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.7483, allocations: 12.03 kB / 1.166 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.7483, allocations: 1.656 kB / 1.166 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.7485, allocations: 169.3 kB / 1.166 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.7485, allocations: 5.594 kB / 1.166 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.7485, allocations: 4.375 kB / 1.166 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.7487, allocations: 74.75 kB / 1.166 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.7487, allocations: 4.188 kB / 1.166 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.7488, allocations: 3.938 kB / 1.166 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.7488, allocations: 0 / 1.166 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.749, allocations: 67.86 kB / 1.166 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005408/0.7495, allocations: 290.2 kB / 1.166 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001668/0.7497, allocations: 66.48 kB / 1.166 GB, free: 14.72 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.697e-05/0.7498, allocations: 40.95 kB / 1.166 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.7498, allocations: 4 kB / 1.166 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.7501, allocations: 83.31 kB / 1.167 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 2.144e-06/0.7501, allocations: 0 / 1.167 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0004058/0.7505, allocations: 141.6 kB / 1.167 GB, free: 14.43 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.7505, allocations: 55.41 kB / 1.167 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.705e-05/0.7506, allocations: 109.8 kB / 1.167 GB, free: 14.25 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.7506, allocations: 29.7 kB / 1.167 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.235e-05/0.7507, allocations: 84.14 kB / 1.167 GB, free: 14.13 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.7508, allocations: 11.81 kB / 1.167 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.7508, allocations: 4 kB / 1.167 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7509, allocations: 318.8 kB / 1.167 GB, free: 13.79 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.751, allocations: 35.97 kB / 1.167 GB, free: 13.76 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.7511, allocations: 60.22 kB / 1.167 GB, free: 13.68 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.7513, allocations: 108.1 kB / 1.167 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.7514, allocations: 4 kB / 1.167 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002715/0.7516, allocations: 134.2 kB / 1.168 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.7517, allocations: 4 kB / 1.168 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.7517, allocations: 4 kB / 1.168 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.7517, allocations: 0 / 1.168 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.7518, allocations: 24.11 kB / 1.168 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.7518, allocations: 3.984 kB / 1.168 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.773e-05/0.7519, allocations: 8 kB / 1.168 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.7519, allocations: 4.188 kB / 1.168 GB, free: 13.38 MB / 0.7448 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.0001006/0.752, allocations: 130.1 kB / 1.168 GB, free: 13.24 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.7521, allocations: 11.84 kB / 1.168 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.7523, allocations: 118 kB / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.7524, allocations: 4 kB / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.7524, allocations: 0 / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7524, allocations: 0 / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.7528, allocations: 374.4 kB / 1.168 GB, free: 12.69 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7528, allocations: 0 / 1.168 GB, free: 12.69 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.477e-05/0.7529, allocations: 15.98 kB / 1.168 GB, free: 12.67 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.7529, allocations: 0 / 1.168 GB, free: 12.67 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-06/0.7529, allocations: 0 / 1.168 GB, free: 12.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.7529, allocations: 4 kB / 1.168 GB, free: 12.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.7529, allocations: 4 kB / 1.168 GB, free: 12.66 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.7532, allocations: 215.3 kB / 1.168 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.7533, allocations: 77.11 kB / 1.169 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.7533, allocations: 4.25 kB / 1.169 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.016e-05/0.7534, allocations: 15.98 kB / 1.169 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.7534, allocations: 9.391 kB / 1.169 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.7535, allocations: 11.94 kB / 1.169 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.233e-05/0.7535, allocations: 79.28 kB / 1.169 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7535, allocations: 0 / 1.169 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002364/0.7538, allocations: 23.98 kB / 1.169 GB, free: 12.2 MB / 0.7448 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.0001632/0.7539, allocations: 111.2 kB / 1.169 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002484/0.7542, allocations: 83.88 kB / 1.169 GB, free: 12 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7542, allocations: 0 / 1.169 GB, free: 12 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.7543, allocations: 40.17 kB / 1.169 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.7546, allocations: 16.91 kB / 1.169 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003444/0.7549, allocations: 141.1 kB / 1.169 GB, free: 11.78 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.7551, allocations: 0.6888 MB / 1.17 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.611e-05/0.7552, allocations: 3.984 kB / 1.17 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.477e-05/0.7552, allocations: 11.44 kB / 1.17 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of SimCode: time 2.31e-07/0.7552, allocations: 0 / 1.17 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of Templates: time 0.002876/0.7581, allocations: 0.7142 MB / 1.17 GB, free: 10.35 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)