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 1.908/1.908, allocations: 287.4 MB / 303.2 MB, free: 8.277 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.001057/0.001056, allocations: 182.7 kB / 371.8 MB, free: 10.83 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.851/1.851, allocations: 205.4 MB / 0.6305 GB, free: 10.57 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.001012/0.001012, allocations: 95.14 kB / 0.7438 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004638, allocations: 11 kB / 0.8667 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2665, allocations: 115.3 MB / 0.9793 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008828/0.2674, allocations: 405.7 kB / 0.9797 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.2687, allocations: 1.051 MB / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.361e-05/0.2688, allocations: 0 / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.273e-05/0.2688, allocations: 3.938 kB / 0.9807 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.464e-05/0.2689, allocations: 0 / 0.9807 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.2692, allocations: 47.89 kB / 0.9808 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.915e-05/0.2693, allocations: 51.84 kB / 0.9808 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2694, allocations: 15.98 kB / 0.9808 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.413e-05/0.2695, allocations: 23.91 kB / 0.9808 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.966e-05/0.2696, allocations: 27.91 kB / 0.9809 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.2696, allocations: 4 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.225e-05/0.2697, allocations: 11.98 kB / 0.9809 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.16e-05/0.2697, allocations: 19.92 kB / 0.9809 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.454e-05/0.2697, allocations: 29.7 kB / 0.9809 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.795e-05/0.2699, allocations: 47.89 kB / 0.981 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.2699, allocations: 0 / 0.981 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.615e-06/0.2699, allocations: 4 kB / 0.981 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2699, allocations: 0 / 0.981 GB, free: 26.44 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.0005234/0.2704, allocations: 377.5 kB / 0.9813 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2705, allocations: 12.03 kB / 0.9814 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.2705, allocations: 8.844 kB / 0.9814 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.025e-05/0.2706, allocations: 176.2 kB / 0.9815 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.2706, allocations: 4.312 kB / 0.9815 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.2707, allocations: 12.38 kB / 0.9815 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.2709, allocations: 78.22 kB / 0.9816 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2709, allocations: 4.172 kB / 0.9816 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2709, allocations: 7.938 kB / 0.9816 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2709, allocations: 7.938 kB / 0.9816 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.2711, allocations: 59.95 kB / 0.9817 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000443/0.2716, allocations: 316.7 kB / 0.982 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.2717, allocations: 86.47 kB / 0.9821 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.2719, allocations: 52.83 kB / 0.9821 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.2719, allocations: 4 kB / 0.9821 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.2721, allocations: 95.48 kB / 0.9822 GB, free: 25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.2721, allocations: 0 / 0.9822 GB, free: 25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004312/0.2726, allocations: 189.5 kB / 0.9824 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.2726, allocations: 55.41 kB / 0.9825 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.114e-05/0.2727, allocations: 109.8 kB / 0.9826 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.2727, allocations: 29.7 kB / 0.9826 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.2727, allocations: 88.38 kB / 0.9827 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.2728, allocations: 31.62 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.188e-05/0.2728, allocations: 4 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.564e-05/0.2729, allocations: 315 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.273, allocations: 47.91 kB / 0.9831 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.2732, allocations: 66.53 kB / 0.9831 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.2734, allocations: 110.5 kB / 0.9832 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2734, allocations: 3.938 kB / 0.9832 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002733/0.2737, allocations: 153.4 kB / 0.9834 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2737, allocations: 10.17 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2737, allocations: 4.062 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.2737, allocations: 4 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.2738, allocations: 24.17 kB / 0.9834 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.2739, allocations: 4 kB / 0.9834 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.2739, allocations: 20.22 kB / 0.9834 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.274, allocations: 11.92 kB / 0.9835 GB, free: 23.67 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 7.502e-05/0.274, allocations: 129.8 kB / 0.9836 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.274, allocations: 4 kB / 0.9836 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000296/0.2744, allocations: 153.9 kB / 0.9837 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2744, allocations: 4 kB / 0.9837 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2744, allocations: 0 / 0.9837 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.796e-05/0.2744, allocations: 85.02 kB / 0.9838 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.2744, allocations: 7.984 kB / 0.9838 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.986e-05/0.2745, allocations: 12 kB / 0.9838 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.2745, allocations: 7.922 kB / 0.9838 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003057/0.2748, allocations: 236.8 kB / 0.9841 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002812/0.2751, allocations: 322.6 kB / 0.9844 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001082/0.2753, allocations: 47.97 kB / 0.9844 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.365e-05/0.2753, allocations: 87.27 kB / 0.9845 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of Backend: time 2.8e-07/0.2753, allocations: 0 / 0.9845 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004374/0.2757, allocations: 154.3 kB / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0003514/0.2761, allocations: 0.5956 MB / 0.9852 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of Templates: time 0.002788/0.2789, allocations: 0.9794 MB / 0.9862 GB, free: 20.76 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)