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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.785/1.785, allocations: 288.3 MB / 303.2 MB, free: 8.219 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.001412/0.001412, allocations: 185 kB / 371.9 MB, free: 10.28 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.89/1.89, allocations: 205.4 MB / 0.6306 GB, free: 10 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.00116/0.00116, allocations: 96.58 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004645/0.0004654, allocations: 11.5 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2587, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00103/0.2598, allocations: 386 kB / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.2611, allocations: 1.052 MB / 0.9808 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.256e-05/0.2612, allocations: 0 / 0.9808 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.112e-05/0.2613, allocations: 0 / 0.9808 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.211e-05/0.2614, allocations: 7.922 kB / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.2617, allocations: 31.91 kB / 0.9809 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.535e-05/0.2618, allocations: 39.83 kB / 0.9809 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.2619, allocations: 4 kB / 0.9809 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.048e-05/0.262, allocations: 19.98 kB / 0.9809 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.095e-05/0.2621, allocations: 23.91 kB / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.455e-05/0.2621, allocations: 0 / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.335e-05/0.2622, allocations: 11.98 kB / 0.981 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.102e-05/0.2622, allocations: 15.92 kB / 0.981 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.529e-05/0.2622, allocations: 29.7 kB / 0.981 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.2623, allocations: 35.91 kB / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2624, allocations: 0 / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.375e-06/0.2624, allocations: 0 / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2624, allocations: 0 / 0.981 GB, free: 26.04 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005965/0.263, allocations: 371.5 kB / 0.9814 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.263, allocations: 8.031 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.2631, allocations: 3.906 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.2632, allocations: 182.9 kB / 0.9816 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2632, allocations: 0 / 0.9816 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2633, allocations: 4 kB / 0.9816 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.2635, allocations: 69.67 kB / 0.9816 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2635, allocations: 3.984 kB / 0.9817 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.2635, allocations: 0 / 0.9817 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2635, allocations: 0 / 0.9817 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.2637, allocations: 55.97 kB / 0.9817 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.2642, allocations: 276.8 kB / 0.982 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.2644, allocations: 66.55 kB / 0.982 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.2644, allocations: 4.078 kB / 0.982 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.2646, allocations: 79.48 kB / 0.9821 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.684e-06/0.2647, allocations: 4 kB / 0.9821 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004061/0.2651, allocations: 141.5 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.2651, allocations: 55.39 kB / 0.9823 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.923e-05/0.2652, allocations: 101.9 kB / 0.9824 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.2652, allocations: 33.64 kB / 0.9824 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.408e-05/0.2653, allocations: 92.12 kB / 0.9825 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.2653, allocations: 23.66 kB / 0.9825 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/0.2653, allocations: 0 / 0.9825 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.965e-05/0.2653, allocations: 326.7 kB / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.624e-05/0.2655, allocations: 27.98 kB / 0.9829 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.2656, allocations: 68.27 kB / 0.9829 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.2657, allocations: 35.91 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2657, allocations: 4 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002531/0.2659, allocations: 121.6 kB / 0.9831 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.266, allocations: 4 kB / 0.9831 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.266, allocations: 4.109 kB / 0.9831 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.266, allocations: 8 kB / 0.9831 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.2661, allocations: 28.17 kB / 0.9831 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.2661, allocations: 0 / 0.9831 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.166e-05/0.2662, allocations: 15.91 kB / 0.9832 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.2662, allocations: 4 kB / 0.9832 GB, free: 23.63 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.844e-05/0.2663, allocations: 123.5 kB / 0.9833 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.2663, allocations: 4 kB / 0.9833 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.2666, allocations: 126.2 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2666, allocations: 0 / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.2667, allocations: 0 / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2667, allocations: 0 / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.2671, allocations: 374.4 kB / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2671, allocations: 0 / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.475e-05/0.2671, allocations: 19.98 kB / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2672, allocations: 0 / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2672, allocations: 4 kB / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2672, allocations: 0 / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2672, allocations: 0 / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.2675, allocations: 215.4 kB / 0.984 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.357e-05/0.2675, allocations: 81.02 kB / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.2675, allocations: 3.984 kB / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.214e-05/0.2676, allocations: 8 kB / 0.9841 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.2677, allocations: 11.92 kB / 0.9841 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.2677, allocations: 4 kB / 0.9841 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.621e-05/0.2677, allocations: 91.2 kB / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2677, allocations: 0 / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002387/0.268, allocations: 23.94 kB / 0.9842 GB, free: 22.46 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001355/0.2681, allocations: 99.2 kB / 0.9843 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002557/0.2684, allocations: 84.25 kB / 0.9844 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2684, allocations: 4.062 kB / 0.9844 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.2685, allocations: 39.91 kB / 0.9844 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.2687, allocations: 7.984 kB / 0.9844 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003102/0.269, allocations: 152.6 kB / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.2692, allocations: 0.6848 MB / 0.9852 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.2692, allocations: 4.188 kB / 0.9852 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.2692, allocations: 11.44 kB / 0.9853 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of SimCode: time 5.11e-07/0.2692, allocations: 0 / 0.9853 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of Templates: time 0.002921/0.2722, allocations: 0.7144 MB / 0.986 GB, free: 20.61 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)