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.673/1.673, allocations: 288.4 MB / 303.4 MB, free: 8.082 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.001109/0.00111, allocations: 192.5 kB / 372 MB, free: 10.26 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.703/1.703, allocations: 205.4 MB / 0.6307 GB, free: 10.02 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.001269/0.00127, allocations: 100.8 kB / 0.7441 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.000462, allocations: 12.06 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2694, allocations: 115.3 MB / 0.9796 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00112/0.2706, allocations: 405.9 kB / 0.98 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.2722, allocations: 1.044 MB / 0.981 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.124e-05/0.2723, allocations: 3.938 kB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.2723, allocations: 0 / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.2724, allocations: 3.938 kB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.2728, allocations: 51.83 kB / 0.9811 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.684e-05/0.2729, allocations: 51.91 kB / 0.9811 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.273, allocations: 11.98 kB / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.238e-05/0.2731, allocations: 23.91 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.993e-05/0.2731, allocations: 31.84 kB / 0.9812 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.2732, allocations: 4 kB / 0.9812 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.2732, allocations: 15.98 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.453e-05/0.2733, allocations: 8 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.731e-05/0.2733, allocations: 37.62 kB / 0.9812 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.2734, allocations: 51.89 kB / 0.9813 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.2735, allocations: 3.984 kB / 0.9813 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.535e-06/0.2735, allocations: 0 / 0.9813 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.2735, allocations: 4 kB / 0.9813 GB, free: 25.91 MB / 0.6198 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.0006022/0.2741, allocations: 367.5 kB / 0.9816 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2741, allocations: 12.03 kB / 0.9817 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.277e-05/0.2742, allocations: 7.906 kB / 0.9817 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2743, allocations: 175 kB / 0.9818 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.2744, allocations: 8 kB / 0.9818 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.2744, allocations: 7.938 kB / 0.9818 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002427/0.2746, allocations: 89.58 kB / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2746, allocations: 0 / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2747, allocations: 4 kB / 0.9819 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.2747, allocations: 4 kB / 0.9819 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.2749, allocations: 59.95 kB / 0.982 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000586/0.2755, allocations: 320.7 kB / 0.9823 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002577/0.2758, allocations: 82.48 kB / 0.9824 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.276, allocations: 56.83 kB / 0.9824 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.276, allocations: 0 / 0.9824 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.2763, allocations: 91.36 kB / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.2763, allocations: 0 / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004947/0.2768, allocations: 197.6 kB / 0.9827 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.2768, allocations: 55.41 kB / 0.9828 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.11e-05/0.2769, allocations: 105.8 kB / 0.9829 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.2769, allocations: 33.7 kB / 0.9829 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.277, allocations: 84.38 kB / 0.983 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.277, allocations: 31.58 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.277, allocations: 4 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.082e-05/0.2771, allocations: 322.8 kB / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.2772, allocations: 40.08 kB / 0.9834 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.2773, allocations: 74.47 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.2775, allocations: 43.98 kB / 0.9835 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2775, allocations: 0 / 0.9835 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002931/0.2778, allocations: 157.4 kB / 0.9836 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2778, allocations: 4 kB / 0.9836 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2778, allocations: 0 / 0.9836 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.2778, allocations: 4 kB / 0.9836 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.278, allocations: 27.98 kB / 0.9837 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.278, allocations: 4 kB / 0.9837 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.97e-05/0.2781, allocations: 15.92 kB / 0.9837 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.2781, allocations: 4 kB / 0.9837 GB, free: 23.24 MB / 0.6198 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.659e-05/0.2782, allocations: 125.8 kB / 0.9838 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.2782, allocations: 7.844 kB / 0.9838 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.2785, allocations: 157.9 kB / 0.984 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2786, allocations: 7.984 kB / 0.984 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2786, allocations: 0 / 0.984 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2786, allocations: 3.984 kB / 0.984 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.279, allocations: 422.8 kB / 0.9844 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.279, allocations: 0 / 0.9844 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.758e-05/0.2791, allocations: 19.92 kB / 0.9844 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2791, allocations: 0 / 0.9844 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2791, allocations: 0 / 0.9844 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.2791, allocations: 4.094 kB / 0.9844 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2791, allocations: 7.938 kB / 0.9844 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.2794, allocations: 247.4 kB / 0.9846 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.85e-05/0.2795, allocations: 89.2 kB / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.2795, allocations: 0 / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.2796, allocations: 19.98 kB / 0.9847 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.2797, allocations: 7.984 kB / 0.9847 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.2797, allocations: 8 kB / 0.9848 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.638e-05/0.2797, allocations: 79.28 kB / 0.9848 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2797, allocations: 0 / 0.9848 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002258/0.28, allocations: 31.94 kB / 0.9849 GB, free: 21.92 MB / 0.6198 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.0001478/0.2801, allocations: 109.1 kB / 0.985 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003096/0.2804, allocations: 103.9 kB / 0.9851 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2804, allocations: 0 / 0.9851 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.2806, allocations: 60.03 kB / 0.9851 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.2808, allocations: 9.688 kB / 0.9851 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003321/0.2812, allocations: 169.3 kB / 0.9853 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.2813, allocations: 0.6888 MB / 0.986 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.933e-05/0.2814, allocations: 8.422 kB / 0.986 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.607e-05/0.2814, allocations: 11.44 kB / 0.986 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/0.2814, allocations: 0 / 0.986 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of Templates: time 0.003176/0.2846, allocations: 0.8932 MB / 0.9869 GB, free: 19.83 MB / 0.6198 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)