Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.148/2.148, allocations: 251.1 MB / 266.7 MB, free: 11.67 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001419/0.001418, allocations: 176.1 kB / 326.2 MB, free: 2.902 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.472/2.472, allocations: 205.4 MB / 0.5772 GB, free: 21.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008978/0.0008973, allocations: 92.36 kB / 0.6817 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006302/0.0006307, allocations: 17.09 kB / 0.7957 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2391, allocations: 106.3 MB / 0.8995 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/0.472, allocations: 131.5 MB / 1.028 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003488/0.4724, allocations: 75.94 kB / 1.028 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004918/0.4773, allocations: 0.8932 MB / 1.029 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.746e-06/0.4774, allocations: 0 / 1.029 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.4774, allocations: 0 / 1.029 GB, free: 13.41 MB / 0.6823 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.0007891/0.4782, allocations: 367.4 kB / 1.029 GB, free: 13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.4783, allocations: 8.031 kB / 1.029 GB, free: 12.99 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.4784, allocations: 8.844 kB / 1.029 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.4786, allocations: 180.2 kB / 1.029 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.4786, allocations: 384 / 1.029 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.4787, allocations: 8.359 kB / 1.029 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.4791, allocations: 70.23 kB / 1.029 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4791, allocations: 4.172 kB / 1.029 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.4792, allocations: 7.875 kB / 1.029 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.4792, allocations: 0 / 1.029 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004672/0.4797, allocations: 51.97 kB / 1.03 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000866/0.4805, allocations: 304.7 kB / 1.03 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.4809, allocations: 70.48 kB / 1.03 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.4812, allocations: 36.95 kB / 1.03 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.4813, allocations: 0 / 1.03 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.4817, allocations: 83.38 kB / 1.03 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.986e-06/0.4818, allocations: 0 / 1.03 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.001006/0.4828, allocations: 137.6 kB / 1.03 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.4829, allocations: 55.41 kB / 1.03 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.483, allocations: 109.8 kB / 1.03 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.4831, allocations: 29.7 kB / 1.03 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.343e-05/0.4832, allocations: 88.11 kB / 1.03 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.4832, allocations: 19.75 kB / 1.03 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/0.4833, allocations: 0 / 1.03 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.4835, allocations: 322.8 kB / 1.031 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.4837, allocations: 27.98 kB / 1.031 GB, free: 11.24 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.4841, allocations: 64.27 kB / 1.031 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.4844, allocations: 47.84 kB / 1.031 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.4844, allocations: 4 kB / 1.031 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006905/0.4851, allocations: 113.7 kB / 1.031 GB, free: 11 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.824e-05/0.4852, allocations: 9.859 kB / 1.031 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4852, allocations: 0 / 1.031 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.4852, allocations: 4 kB / 1.031 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.4855, allocations: 23.92 kB / 1.031 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.4855, allocations: 4 kB / 1.031 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.4857, allocations: 11.91 kB / 1.031 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.4858, allocations: 8 kB / 1.031 GB, free: 10.94 MB / 0.6823 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.0001643/0.486, allocations: 121.8 kB / 1.031 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.486, allocations: 0 / 1.031 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007201/0.4867, allocations: 121.9 kB / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4868, allocations: 4 kB / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4868, allocations: 0 / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4868, allocations: 0 / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.4879, allocations: 378.7 kB / 1.032 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4879, allocations: 4.188 kB / 1.032 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.4881, allocations: 15.98 kB / 1.032 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.4882, allocations: 7.938 kB / 1.032 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.4882, allocations: 0 / 1.032 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.4882, allocations: 0 / 1.032 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4882, allocations: 0 / 1.032 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007248/0.489, allocations: 211.5 kB / 1.032 GB, free: 10 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.698e-05/0.4891, allocations: 85.02 kB / 1.032 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.4891, allocations: 3.984 kB / 1.032 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.4894, allocations: 8.25 kB / 1.032 GB, free: 9.891 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.4895, allocations: 11.92 kB / 1.032 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.4895, allocations: 11.94 kB / 1.032 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 9.095e-05/0.4897, allocations: 87.27 kB / 1.032 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.22e-07/0.4897, allocations: 4 kB / 1.032 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005477/0.4902, allocations: 12 kB / 1.032 GB, free: 9.766 MB / 0.6823 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.0002185/0.4905, allocations: 95.25 kB / 1.032 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006544/0.4911, allocations: 83.88 kB / 1.032 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4912, allocations: 0 / 1.032 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.4915, allocations: 39.97 kB / 1.032 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.4921, allocations: 8.25 kB / 1.032 GB, free: 9.535 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006284/0.4927, allocations: 152.6 kB / 1.032 GB, free: 9.352 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.4932, allocations: 0.6848 MB / 1.033 GB, free: 8.641 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.595e-05/0.4933, allocations: 4 kB / 1.033 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.841e-05/0.4933, allocations: 11.44 kB / 1.033 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of SimCode: time 1.193e-06/0.4933, allocations: 0 / 1.033 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of Templates: time 0.00505/0.4984, allocations: 0.5723 MB / 1.034 GB, free: 8.059 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)