Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.759/1.759, allocations: 292.6 MB / 307.5 MB, free: 5.176 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.001157/0.001158, allocations: 173.1 kB / 377.1 MB, free: 1.535 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.717/1.717, allocations: 205.4 MB / 0.6367 GB, free: 8.59 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.0008492/0.000849, allocations: 93.05 kB / 0.751 GB, free: 63.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004986, allocations: 8 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2823, allocations: 116.3 MB / 0.9884 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7566/1.039, allocations: 139.1 MB / 1.124 GB, free: 35.58 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/1.039, allocations: 72.27 kB / 1.124 GB, free: 35.52 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003168/1.042, allocations: 1.161 MB / 1.125 GB, free: 34.64 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.294e-06/1.042, allocations: 0 / 1.125 GB, free: 34.64 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.626e-06/1.043, allocations: 4 kB / 1.125 GB, free: 34.63 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.0005261/1.043, allocations: 374.7 kB / 1.126 GB, free: 34.23 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/1.043, allocations: 12.03 kB / 1.126 GB, free: 34.22 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/1.043, allocations: 5.969 kB / 1.126 GB, free: 34.22 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/1.043, allocations: 167.9 kB / 1.126 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/1.043, allocations: 8.234 kB / 1.126 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/1.043, allocations: 15.38 kB / 1.126 GB, free: 34 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/1.044, allocations: 87.05 kB / 1.126 GB, free: 33.93 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/1.044, allocations: 0 / 1.126 GB, free: 33.93 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/1.044, allocations: 4.75 kB / 1.126 GB, free: 33.92 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/1.044, allocations: 0 / 1.126 GB, free: 33.92 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/1.044, allocations: 70.42 kB / 1.126 GB, free: 33.87 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/1.044, allocations: 325 kB / 1.126 GB, free: 33.54 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/1.045, allocations: 92.41 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/1.045, allocations: 4.562 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/1.045, allocations: 97.77 kB / 1.127 GB, free: 33.35 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/1.045, allocations: 0 / 1.127 GB, free: 33.35 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10): time 0.000491/1.045, allocations: 183.8 kB / 1.127 GB, free: 33.19 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/1.046, allocations: 59.41 kB / 1.127 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.916e-05/1.046, allocations: 101 kB / 1.127 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/1.046, allocations: 29.7 kB / 1.127 GB, free: 32.98 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.275e-05/1.046, allocations: 88.28 kB / 1.127 GB, free: 32.89 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/1.046, allocations: 31.8 kB / 1.127 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-06/1.046, allocations: 0 / 1.127 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.129e-05/1.046, allocations: 322.3 kB / 1.127 GB, free: 32.54 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/1.046, allocations: 47.62 kB / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/1.046, allocations: 69.83 kB / 1.127 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/1.046, allocations: 52.06 kB / 1.128 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/1.046, allocations: 0 / 1.128 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002675/1.046, allocations: 151.6 kB / 1.128 GB, free: 32.25 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/1.047, allocations: 4.062 kB / 1.128 GB, free: 32.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/1.047, allocations: 9.953 kB / 1.128 GB, free: 32.24 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.047, allocations: 0.6094 kB / 1.128 GB, free: 32.24 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/1.047, allocations: 19.56 kB / 1.128 GB, free: 32.23 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/1.047, allocations: 7.938 kB / 1.128 GB, free: 32.22 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.125e-05/1.047, allocations: 15.5 kB / 1.128 GB, free: 32.21 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/1.047, allocations: 8 kB / 1.128 GB, free: 32.2 MB / 0.7292 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 8.841e-05/1.047, allocations: 126.8 kB / 1.128 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/1.047, allocations: 9.562 kB / 1.128 GB, free: 32.06 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/1.047, allocations: 147.5 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/1.047, allocations: 4 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/1.047, allocations: 4.594 kB / 1.128 GB, free: 31.92 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/1.047, allocations: 8.266 kB / 1.128 GB, free: 31.92 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000417/1.048, allocations: 418.4 kB / 1.128 GB, free: 31.49 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/1.048, allocations: 0 / 1.128 GB, free: 31.49 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/1.048, allocations: 16.16 kB / 1.128 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/1.048, allocations: 0 / 1.128 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/1.048, allocations: 7.938 kB / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.048, allocations: 0 / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/1.048, allocations: 1.219 kB / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/1.048, allocations: 260.1 kB / 1.129 GB, free: 31.22 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/1.048, allocations: 81.72 kB / 1.129 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/1.048, allocations: 4 kB / 1.129 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/1.048, allocations: 11.52 kB / 1.129 GB, free: 31.11 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/1.048, allocations: 7.688 kB / 1.129 GB, free: 31.11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/1.048, allocations: 4 kB / 1.129 GB, free: 31.11 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.1e-05/1.048, allocations: 87.2 kB / 1.129 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/1.048, allocations: 0 / 1.129 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002369/1.049, allocations: 31.94 kB / 1.129 GB, free: 30.99 MB / 0.7292 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.0001827/1.049, allocations: 111.4 kB / 1.129 GB, free: 30.88 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002829/1.049, allocations: 107.8 kB / 1.129 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/1.049, allocations: 0 / 1.129 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/1.049, allocations: 54.97 kB / 1.129 GB, free: 30.74 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/1.049, allocations: 12.5 kB / 1.129 GB, free: 30.73 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003583/1.05, allocations: 176.8 kB / 1.129 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/1.05, allocations: 0.688 MB / 1.13 GB, free: 29.85 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.503e-05/1.05, allocations: 5.188 kB / 1.13 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.113e-05/1.05, allocations: 16.12 kB / 1.13 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/1.05, allocations: 0 / 1.13 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of Templates: time 0.003113/1.053, allocations: 0.8741 MB / 1.131 GB, free: 29.34 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)