Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.601/1.601, allocations: 297.8 MB / 313.7 MB, free: 116 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.001012/0.001012, allocations: 175 kB / 384.6 MB, free: 10.85 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.276/1.276, allocations: 223.2 MB / 0.6626 GB, free: 4.199 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.0008874/0.0008875, allocations: 101 kB / 0.7808 GB, free: 50.46 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004358/0.0004361, allocations: 19.94 kB / 0.9088 GB, free: 2.844 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5208/0.5212, allocations: 120.3 MB / 1.026 GB, free: 55.81 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.6774, allocations: 141.3 MB / 1.164 GB, free: 2.195 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.6776, allocations: 67.39 kB / 1.164 GB, free: 2.141 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003074/0.6807, allocations: 1.176 MB / 1.165 GB, free: 1.254 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6807, allocations: 3.938 kB / 1.166 GB, free: 1.25 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.6808, allocations: 4 kB / 1.166 GB, free: 1.246 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003903/0.6812, allocations: 380.2 kB / 1.166 GB, free: 0.8438 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.6812, allocations: 8.031 kB / 1.166 GB, free: 0.8359 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.022e-05/0.6812, allocations: 8.844 kB / 1.166 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.114e-05/0.6813, allocations: 172.7 kB / 1.166 GB, free: 0.625 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.6813, allocations: 8.891 kB / 1.166 GB, free: 0.6172 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.6813, allocations: 6.516 kB / 1.166 GB, free: 0.6133 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.6815, allocations: 82.77 kB / 1.166 GB, free: 0.543 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.6816, allocations: 192 / 1.166 GB, free: 0.543 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.6816, allocations: 5.656 kB / 1.166 GB, free: 0.5391 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.6816, allocations: 4 kB / 1.166 GB, free: 0.5352 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.6818, allocations: 67.27 kB / 1.166 GB, free: 496 kB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004662/0.6822, allocations: 329.7 kB / 1.167 GB, free: 156 kB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.6824, allocations: 92.92 kB / 1.167 GB, free: 68 kB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.6825, allocations: 48.81 kB / 1.167 GB, free: 24 kB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.6826, allocations: 6.766 kB / 1.167 GB, free: 20 kB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.6828, allocations: 90.86 kB / 1.167 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.6828, allocations: 0.5938 kB / 1.167 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0004518/0.6833, allocations: 186.1 kB / 1.167 GB, free: 15.77 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.6833, allocations: 59.97 kB / 1.167 GB, free: 15.7 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.61e-05/0.6834, allocations: 111.2 kB / 1.167 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.6834, allocations: 35.58 kB / 1.167 GB, free: 15.55 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.6835, allocations: 81.64 kB / 1.167 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.6835, allocations: 34.81 kB / 1.167 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.6835, allocations: 0 / 1.167 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.6836, allocations: 321.4 kB / 1.168 GB, free: 15.11 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.6837, allocations: 41.89 kB / 1.168 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.6839, allocations: 69.94 kB / 1.168 GB, free: 15.02 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.6841, allocations: 115.2 kB / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.6841, allocations: 0 / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003001/0.6844, allocations: 158.5 kB / 1.168 GB, free: 14.77 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.6844, allocations: 4.703 kB / 1.168 GB, free: 14.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.6845, allocations: 4 kB / 1.168 GB, free: 14.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.6845, allocations: 0 / 1.168 GB, free: 14.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.6846, allocations: 25.38 kB / 1.168 GB, free: 14.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.6846, allocations: 5.281 kB / 1.168 GB, free: 14.74 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.395e-05/0.6847, allocations: 20.53 kB / 1.168 GB, free: 14.73 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.6847, allocations: 4.656 kB / 1.168 GB, free: 14.72 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.585e-05/0.6848, allocations: 124.4 kB / 1.168 GB, free: 14.59 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.6848, allocations: 7.906 kB / 1.168 GB, free: 14.59 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003237/0.6851, allocations: 160.5 kB / 1.168 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.6852, allocations: 0.75 kB / 1.168 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.6852, allocations: 0 / 1.168 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.6852, allocations: 0.5156 kB / 1.168 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.6857, allocations: 425.6 kB / 1.169 GB, free: 14.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6857, allocations: 0 / 1.169 GB, free: 14.01 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/0.6857, allocations: 16.75 kB / 1.169 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.6858, allocations: 0 / 1.169 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.6858, allocations: 6.578 kB / 1.169 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.6858, allocations: 0 / 1.169 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6858, allocations: 0.7969 kB / 1.169 GB, free: 14 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.6861, allocations: 249 kB / 1.169 GB, free: 13.75 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.6861, allocations: 81.81 kB / 1.169 GB, free: 13.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.6862, allocations: 8.797 kB / 1.169 GB, free: 13.65 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.6863, allocations: 15.7 kB / 1.169 GB, free: 13.64 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.6863, allocations: 7.516 kB / 1.169 GB, free: 13.63 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.6863, allocations: 5.25 kB / 1.169 GB, free: 13.63 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.673e-05/0.6864, allocations: 85.67 kB / 1.169 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6864, allocations: 0 / 1.169 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002326/0.6866, allocations: 39.58 kB / 1.169 GB, free: 13.51 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001237/0.6868, allocations: 107 kB / 1.169 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002781/0.687, allocations: 115.5 kB / 1.169 GB, free: 13.3 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.687, allocations: 0 / 1.169 GB, free: 13.3 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.6872, allocations: 51.39 kB / 1.169 GB, free: 13.26 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.6874, allocations: 10.39 kB / 1.169 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003059/0.6877, allocations: 170.8 kB / 1.17 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.6879, allocations: 0.6871 MB / 1.17 GB, free: 12.36 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.003e-05/0.688, allocations: 11.36 kB / 1.17 GB, free: 12.36 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.542e-05/0.688, allocations: 12.23 kB / 1.17 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/0.688, allocations: 0 / 1.17 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of Templates: time 0.002785/0.6908, allocations: 0.8876 MB / 1.171 GB, free: 11.86 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)