Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.769/1.769, allocations: 287.5 MB / 302.6 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.001137/0.001137, allocations: 181.9 kB / 371.2 MB, free: 10.81 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.759/1.759, allocations: 205.4 MB / 0.6298 GB, free: 10.45 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.0009092/0.0009093, allocations: 97.83 kB / 0.7432 GB, free: 6.449 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006138/0.0006142, allocations: 11.06 kB / 0.8661 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3144, allocations: 115.3 MB / 0.9787 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001022/0.3155, allocations: 401.7 kB / 0.9791 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.3171, allocations: 1.051 MB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.617e-05/0.3172, allocations: 0 / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.191e-05/0.3172, allocations: 0 / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.3174, allocations: 3.938 kB / 0.9801 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3178, allocations: 39.89 kB / 0.9801 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.3179, allocations: 35.92 kB / 0.9802 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.318, allocations: 11.98 kB / 0.9802 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.338e-05/0.3181, allocations: 15.94 kB / 0.9802 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.269e-05/0.3182, allocations: 31.89 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.3182, allocations: 0 / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.634e-05/0.3183, allocations: 11.98 kB / 0.9802 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.3184, allocations: 11.94 kB / 0.9802 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.3184, allocations: 29.7 kB / 0.9803 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.3185, allocations: 39.91 kB / 0.9803 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3185, allocations: 3.984 kB / 0.9803 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3185, allocations: 0 / 0.9803 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3185, allocations: 0 / 0.9803 GB, free: 26.47 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.00061/0.3192, allocations: 363.7 kB / 0.9807 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.3192, allocations: 12.03 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.223e-05/0.3193, allocations: 4.844 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.3194, allocations: 176.3 kB / 0.9809 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3194, allocations: 384 / 0.9809 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.3195, allocations: 4.375 kB / 0.9809 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.3197, allocations: 74.22 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3197, allocations: 4.188 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.3198, allocations: 7.875 kB / 0.9809 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3198, allocations: 0 / 0.9809 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.32, allocations: 59.95 kB / 0.981 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004871/0.3205, allocations: 280.7 kB / 0.9813 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.3207, allocations: 66.48 kB / 0.9813 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.322e-05/0.3208, allocations: 36.97 kB / 0.9814 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.3208, allocations: 7.984 kB / 0.9814 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.3211, allocations: 71.39 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.3211, allocations: 4 kB / 0.9814 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004315/0.3215, allocations: 137.6 kB / 0.9816 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3216, allocations: 59.39 kB / 0.9816 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.092e-05/0.3216, allocations: 101.9 kB / 0.9817 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.3217, allocations: 29.7 kB / 0.9818 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.3217, allocations: 92.03 kB / 0.9818 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.3217, allocations: 27.75 kB / 0.9819 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/0.3217, allocations: 0 / 0.9819 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.255e-05/0.3218, allocations: 318.8 kB / 0.9822 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-05/0.3219, allocations: 31.98 kB / 0.9822 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.322, allocations: 64.27 kB / 0.9823 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.3222, allocations: 112.1 kB / 0.9824 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3222, allocations: 0 / 0.9824 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002562/0.3225, allocations: 125.6 kB / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3225, allocations: 4 kB / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3226, allocations: 4 kB / 0.9825 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3226, allocations: 0 / 0.9825 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3227, allocations: 28.05 kB / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3227, allocations: 0 / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.128e-05/0.3228, allocations: 15.89 kB / 0.9825 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.3228, allocations: 4 kB / 0.9825 GB, free: 23.94 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.724e-05/0.3229, allocations: 117.8 kB / 0.9827 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.3229, allocations: 4 kB / 0.9827 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002629/0.3232, allocations: 118 kB / 0.9828 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3232, allocations: 4 kB / 0.9828 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3232, allocations: 3.984 kB / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.3232, allocations: 0 / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.3236, allocations: 382.7 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3236, allocations: 3.938 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.238e-05/0.3237, allocations: 15.98 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3237, allocations: 0 / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.3237, allocations: 0 / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3237, allocations: 4 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3237, allocations: 4 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.324, allocations: 203.4 kB / 0.9834 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.324, allocations: 81.02 kB / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.3241, allocations: 8.25 kB / 0.9835 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.3241, allocations: 15.98 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.3242, allocations: 4 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.3242, allocations: 11.92 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.314e-05/0.3243, allocations: 79.28 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3243, allocations: 3.938 kB / 0.9836 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002286/0.3245, allocations: 20.12 kB / 0.9836 GB, free: 22.77 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.0001909/0.3247, allocations: 111.2 kB / 0.9837 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.325, allocations: 87.81 kB / 0.9838 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.325, allocations: 0 / 0.9838 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3251, allocations: 40.22 kB / 0.9838 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.3254, allocations: 8 kB / 0.9838 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003529/0.3257, allocations: 142.2 kB / 0.984 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.3259, allocations: 0.6888 MB / 0.9846 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.994e-05/0.326, allocations: 3.938 kB / 0.9846 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.326, allocations: 11.44 kB / 0.9846 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of SimCode: time 2.154e-06/0.326, allocations: 0 / 0.9846 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of Templates: time 0.003617/0.3296, allocations: 0.716 MB / 0.9853 GB, free: 20.92 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)