Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.84/2.84, allocations: 287.5 MB / 302.4 MB, free: 8.273 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.001504/0.001503, allocations: 170.3 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.331/2.331, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.0009301/0.00093, allocations: 97.61 kB / 0.743 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007409/0.0007415, allocations: 15.44 kB / 0.8658 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3026, allocations: 115.3 MB / 0.9784 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001147/0.3038, allocations: 413.7 kB / 0.9788 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3059, allocations: 1.044 MB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.279e-05/0.306, allocations: 3.938 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.965e-05/0.306, allocations: 0 / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.873e-05/0.3062, allocations: 7.922 kB / 0.9798 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.3065, allocations: 39.95 kB / 0.9798 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.3066, allocations: 59.83 kB / 0.9799 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.3068, allocations: 12 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.3069, allocations: 23.86 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.606e-05/0.307, allocations: 31.83 kB / 0.9799 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.335e-05/0.307, allocations: 4 kB / 0.9799 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.64e-05/0.3071, allocations: 19.98 kB / 0.98 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.509e-05/0.3072, allocations: 7.984 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.469e-05/0.3072, allocations: 37.64 kB / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.3074, allocations: 47.88 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3074, allocations: 0 / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.306e-06/0.3075, allocations: 4 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.3075, allocations: 4 kB / 0.9801 GB, free: 26.59 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.00084/0.3083, allocations: 367.5 kB / 0.9804 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.3084, allocations: 12.02 kB / 0.9804 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.3085, allocations: 7.906 kB / 0.9804 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.3086, allocations: 171 kB / 0.9806 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.3087, allocations: 12 kB / 0.9806 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.3087, allocations: 4 kB / 0.9806 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.3091, allocations: 85.58 kB / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.3092, allocations: 0 / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.3092, allocations: 11.94 kB / 0.9807 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3092, allocations: 0 / 0.9807 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004381/0.3097, allocations: 63.95 kB / 0.9808 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008275/0.3105, allocations: 312.7 kB / 0.9811 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.3109, allocations: 86.55 kB / 0.9811 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.3112, allocations: 52.95 kB / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.3113, allocations: 0 / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.3116, allocations: 103.4 kB / 0.9813 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.786e-06/0.3117, allocations: 0 / 0.9813 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.001054/0.3127, allocations: 193.7 kB / 0.9815 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.3128, allocations: 51.41 kB / 0.9815 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.393e-05/0.3129, allocations: 109.9 kB / 0.9816 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.313, allocations: 37.64 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.313, allocations: 88.36 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.007e-05/0.3131, allocations: 23.66 kB / 0.9818 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.3131, allocations: 0 / 0.9818 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.3132, allocations: 326.8 kB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.3135, allocations: 43.91 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.3138, allocations: 62.66 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.3141, allocations: 55.86 kB / 0.9822 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.3141, allocations: 4 kB / 0.9822 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006702/0.3148, allocations: 153.5 kB / 0.9824 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3149, allocations: 5.875 kB / 0.9824 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3149, allocations: 3.984 kB / 0.9824 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.3149, allocations: 4 kB / 0.9824 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.3152, allocations: 19.98 kB / 0.9824 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3152, allocations: 3.938 kB / 0.9824 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.3154, allocations: 23.89 kB / 0.9825 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.3155, allocations: 4 kB / 0.9825 GB, free: 23.9 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 0.0001554/0.3156, allocations: 125.8 kB / 0.9826 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.3157, allocations: 3.906 kB / 0.9826 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000684/0.3164, allocations: 161.9 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3164, allocations: 4 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3164, allocations: 0 / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.3165, allocations: 0 / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007737/0.3172, allocations: 422.3 kB / 0.9831 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3173, allocations: 4 kB / 0.9831 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3174, allocations: 11.98 kB / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3174, allocations: 0 / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.3174, allocations: 4 kB / 0.9832 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3175, allocations: 3.938 kB / 0.9832 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3175, allocations: 7.938 kB / 0.9832 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005036/0.318, allocations: 247.7 kB / 0.9834 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.492e-05/0.318, allocations: 88.89 kB / 0.9835 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.3181, allocations: 0 / 0.9835 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3182, allocations: 15.98 kB / 0.9835 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.3183, allocations: 11.98 kB / 0.9835 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.3183, allocations: 7.953 kB / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.415e-05/0.3184, allocations: 91.52 kB / 0.9836 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3184, allocations: 0 / 0.9836 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003418/0.3188, allocations: 20 kB / 0.9836 GB, free: 22.59 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.0001721/0.3189, allocations: 107.2 kB / 0.9837 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004774/0.3194, allocations: 107.9 kB / 0.9838 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3194, allocations: 0 / 0.9838 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.3197, allocations: 51.91 kB / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.32, allocations: 18.17 kB / 0.9839 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004872/0.3205, allocations: 165.3 kB / 0.9841 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.3208, allocations: 0.6887 MB / 0.9847 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.918e-05/0.3208, allocations: 4.438 kB / 0.9847 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.3209, allocations: 15.44 kB / 0.9848 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of SimCode: time 9.62e-07/0.3209, allocations: 0 / 0.9848 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of Templates: time 0.004177/0.3251, allocations: 0.8823 MB / 0.9856 GB, free: 20.51 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)