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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.761/1.761, allocations: 285.6 MB / 293.1 MB, free: 10.18 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.0009836/0.0009839, allocations: 179.8 kB / 361.4 MB, free: 6.82 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.599/1.599, allocations: 205.2 MB / 0.62 GB, free: 11.63 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.0008766/0.0008764, allocations: 98.17 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.393e-05/2.395e-05, allocations: 4 kB / 0.8518 GB, free: 2.621 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7488/0.7489, allocations: 115.3 MB / 0.9645 GB, free: 78.8 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.211/0.9599, allocations: 137.3 MB / 1.099 GB, free: 2.484 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.9603, allocations: 75.55 kB / 1.099 GB, free: 2.414 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004942/0.9653, allocations: 1.157 MB / 1.1 GB, free: 1.289 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9653, allocations: 6.969 kB / 1.1 GB, free: 1.285 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.9653, allocations: 0 / 1.1 GB, free: 1.285 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.0007291/0.9661, allocations: 372.4 kB / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.9e-05/0.9662, allocations: 12.03 kB / 1.1 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.9662, allocations: 5.812 kB / 1.1 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.9665, allocations: 170.9 kB / 1.1 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.9666, allocations: 8.578 kB / 1.1 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.9666, allocations: 4 kB / 1.1 GB, free: 0.6445 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001439/0.9668, allocations: 28.69 kB / 1.1 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.967, allocations: 66.3 kB / 1.1 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.967, allocations: 0 / 1.1 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.967, allocations: 4.594 kB / 1.1 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.967, allocations: 0 / 1.1 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.9678, allocations: 304.8 kB / 1.101 GB, free: 216 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.968, allocations: 62.73 kB / 1.101 GB, free: 148 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.329e-05/0.9681, allocations: 26.52 kB / 1.101 GB, free: 120 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.9681, allocations: 9.969 kB / 1.101 GB, free: 112 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/0.9683, allocations: 73.77 kB / 1.101 GB, free: 28 kB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 2.886e-06/0.9683, allocations: 0 / 1.101 GB, free: 28 kB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0003576/0.9687, allocations: 109.6 kB / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.9688, allocations: 63 kB / 1.101 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.402e-05/0.9689, allocations: 96.44 kB / 1.101 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.9689, allocations: 33.69 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.969, allocations: 84.38 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.969, allocations: 27.64 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.9691, allocations: 0.5625 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.9692, allocations: 322.8 kB / 1.102 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.54e-05/0.9693, allocations: 20 kB / 1.102 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.9694, allocations: 46.94 kB / 1.102 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.9696, allocations: 42.19 kB / 1.102 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.9696, allocations: 0 / 1.102 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003783/0.97, allocations: 115.6 kB / 1.102 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.9701, allocations: 8.062 kB / 1.102 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.9701, allocations: 0 / 1.102 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.9701, allocations: 4 kB / 1.102 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.9703, allocations: 27.91 kB / 1.102 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.9703, allocations: 4 kB / 1.102 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.9705, allocations: 7.906 kB / 1.102 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.9705, allocations: 11.2 kB / 1.102 GB, free: 14.98 MB / 0.7136 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 () * 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.0001186/0.9706, allocations: 122.6 kB / 1.102 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002304/0.9709, allocations: 101.6 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.9709, allocations: 7.906 kB / 1.102 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.9712, allocations: 118.1 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.9712, allocations: 0 / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.9712, allocations: 0 / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.9712, allocations: 0 / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.9717, allocations: 358.8 kB / 1.103 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.9717, allocations: 4 kB / 1.103 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.9718, allocations: 15.98 kB / 1.103 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.9719, allocations: 0 / 1.103 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.9719, allocations: 4 kB / 1.103 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.9719, allocations: 4 kB / 1.103 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.9719, allocations: 0 / 1.103 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.9722, allocations: 199.4 kB / 1.103 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.9723, allocations: 89.67 kB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.9723, allocations: 0 / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.9725, allocations: 13.48 kB / 1.103 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.9725, allocations: 14.14 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.9726, allocations: 11.88 kB / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.544e-05/0.9726, allocations: 87.27 kB / 1.103 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9726, allocations: 0 / 1.103 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004142/0.9731, allocations: 19.56 kB / 1.103 GB, free: 13.75 MB / 0.7136 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) * 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.0007749/0.9739, allocations: 0.7618 MB / 1.104 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002266/0.9741, allocations: 63.94 kB / 1.104 GB, free: 12.9 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.9741, allocations: 0 / 1.104 GB, free: 12.9 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.727e-05/0.9742, allocations: 32 kB / 1.104 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.9745, allocations: 12.11 kB / 1.104 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006087/0.9751, allocations: 136.5 kB / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.9755, allocations: 0.6885 MB / 1.105 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.493e-05/0.9755, allocations: 9.219 kB / 1.105 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.621e-05/0.9756, allocations: 15.44 kB / 1.105 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of SimCode: time 3.41e-07/0.9756, allocations: 0 / 1.105 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.9976, allocations: 1.433 MB / 1.106 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/0.9979, allocations: 156.3 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/2.583, allocations: 0 / 1.106 GB, free: 10.39 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)