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.727/1.727, allocations: 289.7 MB / 302.3 MB, free: 2.137 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.001111/0.001111, allocations: 175.2 kB / 371.6 MB, free: 3.395 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.878/1.878, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009641/0.000964, allocations: 91.17 kB / 0.745 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.789e-05/4.792e-05, allocations: 4 kB / 0.8662 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2545, allocations: 116.3 MB / 0.9798 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7419/0.9964, allocations: 138.9 MB / 1.115 GB, free: 44.73 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.9967, allocations: 72.86 kB / 1.115 GB, free: 44.71 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.00313/0.9999, allocations: 1.097 MB / 1.117 GB, free: 43.97 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9999, allocations: 0 / 1.117 GB, free: 43.97 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.9999, allocations: 4.031 kB / 1.117 GB, free: 43.97 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.0003885/1, allocations: 368.8 kB / 1.117 GB, free: 43.59 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/1, allocations: 8.031 kB / 1.117 GB, free: 43.58 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/1, allocations: 8.062 kB / 1.117 GB, free: 43.57 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/1.001, allocations: 174 kB / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/1.001, allocations: 3.266 kB / 1.117 GB, free: 43.38 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/1.001, allocations: 4.656 kB / 1.117 GB, free: 43.37 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/1.001, allocations: 49.31 kB / 1.117 GB, free: 43.33 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/1.001, allocations: 0 / 1.117 GB, free: 43.33 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/1.001, allocations: 3.281 kB / 1.117 GB, free: 43.33 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/1.001, allocations: 0 / 1.117 GB, free: 43.33 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.306e-05/1.001, allocations: 30.34 kB / 1.117 GB, free: 43.31 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/1.001, allocations: 299.8 kB / 1.117 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.743e-05/1.001, allocations: 46.44 kB / 1.118 GB, free: 42.96 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.581e-05/1.002, allocations: 21.48 kB / 1.118 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/1.002, allocations: 4.062 kB / 1.118 GB, free: 42.94 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001169/1.002, allocations: 67.64 kB / 1.118 GB, free: 42.88 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/1.002, allocations: 0 / 1.118 GB, free: 42.88 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0001945/1.002, allocations: 75.17 kB / 1.118 GB, free: 42.82 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/1.002, allocations: 51.97 kB / 1.118 GB, free: 42.75 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.015e-05/1.002, allocations: 97.94 kB / 1.118 GB, free: 42.66 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/1.002, allocations: 29.45 kB / 1.118 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/1.002, allocations: 91.28 kB / 1.118 GB, free: 42.54 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/1.002, allocations: 19.06 kB / 1.118 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/1.002, allocations: 0 / 1.118 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.339e-05/1.002, allocations: 326.3 kB / 1.118 GB, free: 42.2 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.184e-05/1.002, allocations: 11.5 kB / 1.118 GB, free: 42.19 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.84e-05/1.002, allocations: 47.8 kB / 1.118 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.636e-05/1.002, allocations: 26.27 kB / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.002, allocations: 0 / 1.118 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001489/1.002, allocations: 94.56 kB / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.003, allocations: 8.562 kB / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/1.003, allocations: 0 / 1.118 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.003, allocations: 4.125 kB / 1.118 GB, free: 42.03 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/1.003, allocations: 19.38 kB / 1.118 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/1.003, allocations: 7.328 kB / 1.118 GB, free: 42.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.264e-05/1.003, allocations: 4 kB / 1.118 GB, free: 42.01 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/1.003, allocations: 6.125 kB / 1.118 GB, free: 42 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 () * 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 7.755e-05/1.003, allocations: 122 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.358e-05/1.003, allocations: 6.953 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/1.003, allocations: 87.58 kB / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.003, allocations: 0 / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.003, allocations: 0.6562 kB / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/1.003, allocations: 0 / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002764/1.003, allocations: 344.7 kB / 1.119 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/1.003, allocations: 4 kB / 1.119 GB, free: 41.46 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.234e-05/1.004, allocations: 11.47 kB / 1.119 GB, free: 41.46 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.004, allocations: 0.625 kB / 1.119 GB, free: 41.46 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/1.004, allocations: 8 kB / 1.119 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/1.004, allocations: 0 / 1.119 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.004, allocations: 0 / 1.119 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/1.004, allocations: 178 kB / 1.119 GB, free: 41.28 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.338e-05/1.004, allocations: 85.45 kB / 1.119 GB, free: 41.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/1.004, allocations: 4.172 kB / 1.119 GB, free: 41.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.973e-05/1.004, allocations: 15.47 kB / 1.119 GB, free: 41.17 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/1.004, allocations: 4 kB / 1.119 GB, free: 41.16 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/1.004, allocations: 4.625 kB / 1.119 GB, free: 41.16 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.847e-05/1.004, allocations: 87.53 kB / 1.119 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.21e-07/1.004, allocations: 0 / 1.119 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002335/1.004, allocations: 23.27 kB / 1.119 GB, free: 41.06 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) * 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.0001617/1.004, allocations: 108.3 kB / 1.12 GB, free: 40.95 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001291/1.005, allocations: 47.06 kB / 1.12 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.005, allocations: 2.953 kB / 1.12 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.982e-05/1.005, allocations: 31.11 kB / 1.12 GB, free: 40.89 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/1.005, allocations: 8.125 kB / 1.12 GB, free: 40.89 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002465/1.005, allocations: 82.81 kB / 1.12 GB, free: 40.8 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/1.005, allocations: 0.6844 MB / 1.12 GB, free: 40.1 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.951e-05/1.005, allocations: 11.77 kB / 1.12 GB, free: 40.09 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/1.005, allocations: 11.44 kB / 1.12 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of SimCode: time 7.72e-07/1.005, allocations: 0 / 1.12 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of Templates: time 0.002913/1.008, allocations: 0.7064 MB / 1.121 GB, free: 39.7 MB / 0.7448 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)