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.911/1.911, allocations: 288.3 MB / 303.2 MB, free: 8.215 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.001076/0.001076, allocations: 177 kB / 371.8 MB, free: 10.27 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.538/1.538, allocations: 205.4 MB / 0.6306 GB, free: 9.914 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.0009918/0.000992, allocations: 97.12 kB / 0.7439 GB, free: 5.832 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004136, allocations: 10.91 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2681, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00084/0.269, allocations: 405.9 kB / 0.9798 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.2701, allocations: 1.048 MB / 0.9808 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.771e-05/0.2702, allocations: 0 / 0.9808 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.2702, allocations: 3.938 kB / 0.9808 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.2703, allocations: 7.984 kB / 0.9808 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.2705, allocations: 39.83 kB / 0.9809 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.754e-05/0.2706, allocations: 35.95 kB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.78e-05/0.2707, allocations: 16 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.12e-05/0.2708, allocations: 23.91 kB / 0.981 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.035e-05/0.2708, allocations: 27.91 kB / 0.981 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.2709, allocations: 4 kB / 0.981 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.485e-05/0.2709, allocations: 15.92 kB / 0.981 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.556e-05/0.2709, allocations: 19.91 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.271, allocations: 33.7 kB / 0.9811 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.67e-05/0.2711, allocations: 43.89 kB / 0.9811 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2711, allocations: 0 / 0.9811 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2711, allocations: 0 / 0.9811 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.2711, allocations: 0 / 0.9811 GB, free: 25.95 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.0005915/0.2717, allocations: 379.5 kB / 0.9815 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2718, allocations: 8.031 kB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.2718, allocations: 7.906 kB / 0.9815 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.726e-05/0.2719, allocations: 186.9 kB / 0.9817 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.2719, allocations: 4 kB / 0.9817 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.272, allocations: 8 kB / 0.9817 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.2722, allocations: 85.64 kB / 0.9817 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2722, allocations: 0 / 0.9817 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.2722, allocations: 0 / 0.9817 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2722, allocations: 0 / 0.9817 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.2724, allocations: 67.95 kB / 0.9818 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005297/0.273, allocations: 316.6 kB / 0.9821 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.2732, allocations: 90.53 kB / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.2732, allocations: 0 / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.2734, allocations: 95.44 kB / 0.9823 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.2734, allocations: 4 kB / 0.9823 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004638/0.2739, allocations: 189.5 kB / 0.9825 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.274, allocations: 55.39 kB / 0.9825 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.974e-05/0.274, allocations: 109.9 kB / 0.9826 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.2741, allocations: 33.69 kB / 0.9827 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.2741, allocations: 84.38 kB / 0.9827 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.2741, allocations: 31.62 kB / 0.9828 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-06/0.2742, allocations: 8 kB / 0.9828 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.788e-05/0.2742, allocations: 318.8 kB / 0.9831 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2743, allocations: 43.97 kB / 0.9831 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.2745, allocations: 64.38 kB / 0.9832 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.2746, allocations: 51.97 kB / 0.9832 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2746, allocations: 4 kB / 0.9832 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002777/0.2749, allocations: 149.5 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2749, allocations: 4 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2749, allocations: 0 / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2749, allocations: 12 kB / 0.9834 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.2751, allocations: 19.98 kB / 0.9834 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.2751, allocations: 0 / 0.9834 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.826e-05/0.2752, allocations: 19.92 kB / 0.9834 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.2752, allocations: 4 kB / 0.9834 GB, free: 23.31 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.105e-05/0.2753, allocations: 129.7 kB / 0.9836 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.2753, allocations: 11.91 kB / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003071/0.2756, allocations: 149.9 kB / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2756, allocations: 4 kB / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.2756, allocations: 0 / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2756, allocations: 4.453 kB / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004098/0.2761, allocations: 422.2 kB / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2761, allocations: 4 kB / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-05/0.2761, allocations: 15.98 kB / 0.9842 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2761, allocations: 0 / 0.9842 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.2762, allocations: 8 kB / 0.9842 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2762, allocations: 256 / 0.9842 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2762, allocations: 0 / 0.9842 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.2765, allocations: 243.4 kB / 0.9844 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.447e-05/0.2765, allocations: 92.94 kB / 0.9845 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.2765, allocations: 4 kB / 0.9845 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.793e-05/0.2766, allocations: 11.98 kB / 0.9845 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.2767, allocations: 4 kB / 0.9845 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/0.2767, allocations: 7.984 kB / 0.9845 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.016e-05/0.2768, allocations: 87.22 kB / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2768, allocations: 0 / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003128/0.2771, allocations: 28 kB / 0.9846 GB, free: 22.01 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.0001508/0.2773, allocations: 111.1 kB / 0.9847 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002897/0.2776, allocations: 107.9 kB / 0.9848 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2776, allocations: 4.125 kB / 0.9848 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.2777, allocations: 51.97 kB / 0.9849 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.2779, allocations: 4.688 kB / 0.9849 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003456/0.2783, allocations: 173.7 kB / 0.985 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.2784, allocations: 0.6887 MB / 0.9857 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.081e-05/0.2785, allocations: 8.422 kB / 0.9857 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.853e-05/0.2785, allocations: 15.38 kB / 0.9857 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of SimCode: time 2.71e-07/0.2785, allocations: 0 / 0.9857 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of Templates: time 0.003169/0.2817, allocations: 0.8814 MB / 0.9866 GB, free: 19.92 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)