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.679/1.679, allocations: 288.4 MB / 304.3 MB, free: 8.188 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.001164/0.001164, allocations: 172.6 kB / 372.9 MB, free: 10.17 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.505/1.505, allocations: 205.4 MB / 0.6316 GB, free: 9.949 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.0007723/0.0007723, allocations: 114.3 kB / 0.7451 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004082, allocations: 12.22 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2364, allocations: 115.3 MB / 0.9807 GB, free: 27.42 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8203/1.057, allocations: 138.1 MB / 1.116 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/1.057, allocations: 72.31 kB / 1.116 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003775/1.061, allocations: 1.16 MB / 1.117 GB, free: 32.22 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.156e-06/1.061, allocations: 0 / 1.117 GB, free: 32.22 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.795e-06/1.061, allocations: 4 kB / 1.117 GB, free: 32.22 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.0005174/1.061, allocations: 375.5 kB / 1.117 GB, free: 31.86 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/1.061, allocations: 9.844 kB / 1.117 GB, free: 31.86 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.144e-05/1.061, allocations: 10.73 kB / 1.117 GB, free: 31.85 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/1.062, allocations: 170 kB / 1.117 GB, free: 31.65 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/1.062, allocations: 4.375 kB / 1.117 GB, free: 31.65 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/1.062, allocations: 11.69 kB / 1.117 GB, free: 31.65 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/1.062, allocations: 84.58 kB / 1.117 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/1.062, allocations: 3.562 kB / 1.117 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/1.062, allocations: 3.938 kB / 1.117 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.062, allocations: 0 / 1.117 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/1.062, allocations: 67.19 kB / 1.118 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005953/1.063, allocations: 331.8 kB / 1.118 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/1.063, allocations: 96.27 kB / 1.118 GB, free: 31.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/1.063, allocations: 47.53 kB / 1.118 GB, free: 31.29 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/1.063, allocations: 4 kB / 1.118 GB, free: 31.29 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/1.063, allocations: 95.09 kB / 1.118 GB, free: 31.24 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/1.063, allocations: 0 / 1.118 GB, free: 31.24 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0004736/1.064, allocations: 185.9 kB / 1.118 GB, free: 31.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/1.064, allocations: 58.62 kB / 1.118 GB, free: 31.14 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.729e-05/1.064, allocations: 107.6 kB / 1.118 GB, free: 31.04 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/1.064, allocations: 28.86 kB / 1.118 GB, free: 31.01 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.282e-05/1.064, allocations: 98.05 kB / 1.119 GB, free: 30.91 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/1.064, allocations: 36.62 kB / 1.119 GB, free: 30.89 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-06/1.064, allocations: 0 / 1.119 GB, free: 30.89 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001168/1.064, allocations: 317.3 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/1.064, allocations: 43.61 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/1.064, allocations: 69.48 kB / 1.119 GB, free: 30.55 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/1.065, allocations: 109.9 kB / 1.119 GB, free: 30.52 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.065, allocations: 0 / 1.119 GB, free: 30.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003077/1.065, allocations: 155.9 kB / 1.119 GB, free: 30.48 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/1.065, allocations: 8.172 kB / 1.119 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/1.065, allocations: 4.219 kB / 1.119 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/1.065, allocations: 5.406 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/1.065, allocations: 19.2 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/1.065, allocations: 2.562 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.513e-05/1.065, allocations: 17.98 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/1.065, allocations: 4.562 kB / 1.119 GB, free: 30.47 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.0001008/1.065, allocations: 132 kB / 1.119 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/1.065, allocations: 10.56 kB / 1.119 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/1.066, allocations: 154.8 kB / 1.12 GB, free: 30.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/1.066, allocations: 0 / 1.12 GB, free: 30.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/1.066, allocations: 0 / 1.12 GB, free: 30.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/1.066, allocations: 0 / 1.12 GB, free: 30.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/1.066, allocations: 420.1 kB / 1.12 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.066, allocations: 0 / 1.12 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.669e-05/1.066, allocations: 14.8 kB / 1.12 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/1.066, allocations: 4 kB / 1.12 GB, free: 29.99 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/1.066, allocations: 0 / 1.12 GB, free: 29.99 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/1.066, allocations: 0 / 1.12 GB, free: 29.99 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.066, allocations: 0 / 1.12 GB, free: 29.99 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003279/1.067, allocations: 257.8 kB / 1.12 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.743e-05/1.067, allocations: 83.5 kB / 1.12 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/1.067, allocations: 3.812 kB / 1.12 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/1.067, allocations: 13.64 kB / 1.12 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/1.067, allocations: 9.734 kB / 1.12 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/1.067, allocations: 7.562 kB / 1.12 GB, free: 29.74 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.845e-05/1.067, allocations: 86.12 kB / 1.12 GB, free: 29.67 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/1.067, allocations: 0 / 1.12 GB, free: 29.67 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002915/1.067, allocations: 33.94 kB / 1.12 GB, free: 29.66 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.0001841/1.068, allocations: 111.4 kB / 1.121 GB, free: 29.56 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003083/1.068, allocations: 105.3 kB / 1.121 GB, free: 29.56 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.068, allocations: 8.062 kB / 1.121 GB, free: 29.55 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/1.068, allocations: 50.2 kB / 1.121 GB, free: 29.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/1.068, allocations: 10.58 kB / 1.121 GB, free: 29.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/1.069, allocations: 177 kB / 1.121 GB, free: 29.42 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/1.069, allocations: 0.6924 MB / 1.122 GB, free: 28.72 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.858e-05/1.069, allocations: 4.25 kB / 1.122 GB, free: 28.71 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/1.069, allocations: 13.94 kB / 1.122 GB, free: 28.71 MB / 0.698 GB Notification: Performance of SimCode: time 1.91e-07/1.069, allocations: 0 / 1.122 GB, free: 28.71 MB / 0.698 GB Notification: Performance of Templates: time 0.003229/1.072, allocations: 0.8907 MB / 1.122 GB, free: 28.63 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)