Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.788/1.788, allocations: 288.3 MB / 303.2 MB, free: 8.094 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.001224/0.001224, allocations: 181.7 kB / 371.8 MB, free: 10.27 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.893/1.893, allocations: 205.4 MB / 0.6306 GB, free: 9.977 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008991/0.000899, allocations: 93.39 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.0004422, allocations: 11.84 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2808, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8862/1.167, allocations: 138.1 MB / 1.114 GB, free: 16.28 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/1.167, allocations: 71.69 kB / 1.114 GB, free: 16.28 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003789/1.171, allocations: 1.162 MB / 1.115 GB, free: 31.93 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.475e-06/1.171, allocations: 0 / 1.115 GB, free: 31.93 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.454e-06/1.171, allocations: 0 / 1.115 GB, free: 31.93 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005062/1.172, allocations: 380.8 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/1.172, allocations: 7.781 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/1.172, allocations: 10.38 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/1.172, allocations: 174.8 kB / 1.116 GB, free: 31.35 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/1.172, allocations: 6.734 kB / 1.116 GB, free: 31.35 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/1.172, allocations: 8.5 kB / 1.116 GB, free: 31.35 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/1.172, allocations: 82.56 kB / 1.116 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/1.172, allocations: 0 / 1.116 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/1.172, allocations: 3.844 kB / 1.116 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/1.172, allocations: 0 / 1.116 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/1.173, allocations: 66.2 kB / 1.116 GB, free: 31.31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005625/1.173, allocations: 335.3 kB / 1.117 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/1.173, allocations: 88.75 kB / 1.117 GB, free: 31.01 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/1.173, allocations: 0 / 1.117 GB, free: 31.01 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/1.174, allocations: 98.11 kB / 1.117 GB, free: 30.96 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.774e-06/1.174, allocations: 0 / 1.117 GB, free: 30.96 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0004688/1.174, allocations: 185.7 kB / 1.117 GB, free: 30.92 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/1.174, allocations: 61.59 kB / 1.117 GB, free: 30.86 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.046e-05/1.174, allocations: 98.89 kB / 1.117 GB, free: 30.77 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/1.174, allocations: 31.98 kB / 1.117 GB, free: 30.73 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/1.174, allocations: 93.94 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/1.174, allocations: 23.28 kB / 1.117 GB, free: 30.63 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/1.174, allocations: 3.938 kB / 1.117 GB, free: 30.62 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.175, allocations: 324.2 kB / 1.117 GB, free: 30.31 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/1.175, allocations: 46.97 kB / 1.118 GB, free: 30.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/1.175, allocations: 63.25 kB / 1.118 GB, free: 30.28 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/1.175, allocations: 60.41 kB / 1.118 GB, free: 30.27 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.175, allocations: 0 / 1.118 GB, free: 30.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002655/1.175, allocations: 150.7 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/1.175, allocations: 3.906 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/1.175, allocations: 4.062 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/1.175, allocations: 3.812 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/1.175, allocations: 22.36 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/1.175, allocations: 6.641 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.269e-05/1.175, allocations: 15.06 kB / 1.118 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/1.175, allocations: 3.938 kB / 1.118 GB, free: 30.22 MB / 0.698 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 0.0001205/1.176, allocations: 130.8 kB / 1.118 GB, free: 30.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/1.176, allocations: 7.812 kB / 1.118 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003085/1.176, allocations: 154.1 kB / 1.118 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/1.176, allocations: 3.875 kB / 1.118 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.176, allocations: 0 / 1.118 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/1.176, allocations: 4 kB / 1.118 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004679/1.176, allocations: 419.6 kB / 1.119 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/1.176, allocations: 0 / 1.119 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.73e-05/1.177, allocations: 17.67 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/1.177, allocations: 4 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/1.177, allocations: 0 / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/1.177, allocations: 7.625 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/1.177, allocations: 2.953 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/1.177, allocations: 254.6 kB / 1.119 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.355e-05/1.177, allocations: 84.89 kB / 1.119 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/1.177, allocations: 2.297 kB / 1.119 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/1.177, allocations: 13.83 kB / 1.119 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/1.177, allocations: 6.453 kB / 1.119 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/1.177, allocations: 6.5 kB / 1.119 GB, free: 29.49 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.079e-05/1.177, allocations: 83.09 kB / 1.119 GB, free: 29.42 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.177, allocations: 4 kB / 1.119 GB, free: 29.41 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002477/1.177, allocations: 28.47 kB / 1.119 GB, free: 29.41 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: 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.0001691/1.178, allocations: 108.7 kB / 1.119 GB, free: 29.32 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002964/1.178, allocations: 113.7 kB / 1.119 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.178, allocations: 0 / 1.119 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/1.178, allocations: 49.77 kB / 1.119 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/1.178, allocations: 9.578 kB / 1.119 GB, free: 29.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003408/1.179, allocations: 178.3 kB / 1.119 GB, free: 29.17 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/1.179, allocations: 0.6904 MB / 1.12 GB, free: 28.47 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.934e-05/1.179, allocations: 7.109 kB / 1.12 GB, free: 28.47 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/1.179, allocations: 11.22 kB / 1.12 GB, free: 28.46 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/1.179, allocations: 0 / 1.12 GB, free: 28.46 MB / 0.698 GB Notification: Performance of Templates: time 0.003037/1.182, allocations: 0.873 MB / 1.121 GB, free: 28.38 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)