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.795/1.795, allocations: 292.3 MB / 308.1 MB, free: 4.27 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.001915/0.001915, allocations: 193.5 kB / 376.9 MB, free: 1.789 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.885/1.885, allocations: 205.1 MB / 0.6354 GB, free: 9.785 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.001172/0.001173, allocations: 98.39 kB / 0.7479 GB, free: 61.14 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001616, allocations: 55.91 kB / 0.8704 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3517, allocations: 114.5 MB / 0.9822 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002896/0.3546, allocations: 0.7505 MB / 0.983 GB, free: 9.609 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.3566, allocations: 1.071 MB / 0.984 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.059e-05/0.3567, allocations: 0 / 0.984 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.748e-05/0.3568, allocations: 3.938 kB / 0.984 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.557e-05/0.3569, allocations: 7.938 kB / 0.984 GB, free: 8.512 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.3573, allocations: 35.95 kB / 0.9841 GB, free: 8.477 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.3574, allocations: 67.78 kB / 0.9841 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3575, allocations: 12 kB / 0.9841 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.3577, allocations: 27.91 kB / 0.9842 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.3578, allocations: 27.91 kB / 0.9842 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.3578, allocations: 4 kB / 0.9842 GB, free: 8.34 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.897e-05/0.3579, allocations: 15.98 kB / 0.9842 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.595e-05/0.3579, allocations: 15.92 kB / 0.9842 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 6.305e-05/0.358, allocations: 35.83 kB / 0.9843 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.3582, allocations: 67.81 kB / 0.9843 GB, free: 8.207 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3582, allocations: 0 / 0.9843 GB, free: 8.207 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3582, allocations: 4 kB / 0.9843 GB, free: 8.203 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.3582, allocations: 0 / 0.9843 GB, free: 8.203 MB / 0.7136 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.0007875/0.359, allocations: 383.6 kB / 0.9847 GB, free: 7.777 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.3591, allocations: 11.97 kB / 0.9847 GB, free: 7.766 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.3592, allocations: 8.875 kB / 0.9847 GB, free: 7.758 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.3593, allocations: 180.2 kB / 0.9849 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.3594, allocations: 384 / 0.9849 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.3594, allocations: 12.38 kB / 0.9849 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.3597, allocations: 82.2 kB / 0.985 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3597, allocations: 192 / 0.985 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3597, allocations: 3.938 kB / 0.985 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3597, allocations: 0 / 0.985 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.3599, allocations: 59.89 kB / 0.985 GB, free: 7.383 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006132/0.3606, allocations: 300.8 kB / 0.9853 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.3608, allocations: 86.47 kB / 0.9854 GB, free: 6.945 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3609, allocations: 40.84 kB / 0.9854 GB, free: 6.902 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.361, allocations: 4 kB / 0.9854 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.3613, allocations: 103.3 kB / 0.9855 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.3613, allocations: 0 / 0.9855 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0005178/0.3618, allocations: 169.5 kB / 0.9857 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3619, allocations: 55.39 kB / 0.9858 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.362, allocations: 105.8 kB / 0.9859 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.362, allocations: 37.81 kB / 0.9859 GB, free: 6.391 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.3621, allocations: 96.2 kB / 0.986 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.3622, allocations: 23.66 kB / 0.986 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-05/0.3622, allocations: 33.7 kB / 0.986 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3624, allocations: 318.8 kB / 0.9863 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.3625, allocations: 31.98 kB / 0.9864 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.3627, allocations: 73.2 kB / 0.9864 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.3629, allocations: 102.4 kB / 0.9865 GB, free: 5.688 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3629, allocations: 0 / 0.9865 GB, free: 5.688 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003493/0.3633, allocations: 141.5 kB / 0.9867 GB, free: 5.543 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3633, allocations: 4 kB / 0.9867 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3633, allocations: 4 kB / 0.9867 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3634, allocations: 3.938 kB / 0.9867 GB, free: 5.531 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.3635, allocations: 27.92 kB / 0.9867 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3635, allocations: 0 / 0.9867 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.546e-05/0.3636, allocations: 11.92 kB / 0.9867 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.3636, allocations: 4 kB / 0.9867 GB, free: 5.488 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.3637, allocations: 129.8 kB / 0.9869 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.3638, allocations: 7.906 kB / 0.9869 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003465/0.3641, allocations: 142.3 kB / 0.987 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3641, allocations: 0 / 0.987 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3641, allocations: 0 / 0.987 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3641, allocations: 4 kB / 0.987 GB, free: 5.191 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005797/0.3647, allocations: 418.4 kB / 0.9874 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3647, allocations: 3.938 kB / 0.9874 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.615e-05/0.3648, allocations: 8.25 kB / 0.9874 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3648, allocations: 3.984 kB / 0.9874 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3649, allocations: 7.984 kB / 0.9874 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.3649, allocations: 4 kB / 0.9874 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3649, allocations: 0 / 0.9874 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008735/0.3657, allocations: 0.8176 MB / 0.9882 GB, free: 3.824 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.3658, allocations: 88.95 kB / 0.9883 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.3659, allocations: 7.938 kB / 0.9883 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.366, allocations: 7.984 kB / 0.9883 GB, free: 3.703 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.3661, allocations: 11.92 kB / 0.9883 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.3661, allocations: 8 kB / 0.9883 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.09e-05/0.3661, allocations: 87.27 kB / 0.9884 GB, free: 3.598 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3661, allocations: 0 / 0.9884 GB, free: 3.598 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003793/0.3665, allocations: 20 kB / 0.9884 GB, free: 3.578 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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002629/0.3668, allocations: 99.25 kB / 0.9885 GB, free: 3.473 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003274/0.3671, allocations: 99.92 kB / 0.9886 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.3671, allocations: 4.125 kB / 0.9886 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.3673, allocations: 51.91 kB / 0.9887 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3676, allocations: 16.3 kB / 0.9887 GB, free: 3.305 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006772/0.3683, allocations: 294.7 kB / 0.989 GB, free: 2.98 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3687, allocations: 0.6926 MB / 0.9897 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.116e-05/0.3688, allocations: 8.422 kB / 0.9897 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.644e-05/0.3688, allocations: 15.44 kB / 0.9897 GB, free: 2.238 MB / 0.7136 GB Notification: Performance of SimCode: time 1.9e-07/0.3688, allocations: 0 / 0.9897 GB, free: 2.238 MB / 0.7136 GB Notification: Performance of Templates: time 0.004071/0.3729, allocations: 0.9621 MB / 0.9906 GB, free: 1.281 MB / 0.7136 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)