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.645/1.645, allocations: 288.4 MB / 303.7 MB, free: 8.199 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.001033/0.001033, allocations: 180.5 kB / 372.3 MB, free: 10.11 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.847/1.847, allocations: 205.4 MB / 0.631 GB, free: 9.855 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.0009707/0.0009708, allocations: 104.4 kB / 0.7444 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004599, allocations: 15.91 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.312, allocations: 115.3 MB / 0.9801 GB, free: 27.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.000929/0.313, allocations: 398 kB / 0.9805 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.3143, allocations: 1.04 MB / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.714e-05/0.3143, allocations: 0 / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.3144, allocations: 0 / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.788e-05/0.3145, allocations: 3.938 kB / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.3147, allocations: 43.89 kB / 0.9816 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.476e-05/0.3148, allocations: 35.92 kB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.3149, allocations: 11.98 kB / 0.9816 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.524e-05/0.315, allocations: 19.92 kB / 0.9817 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.819e-05/0.3151, allocations: 23.91 kB / 0.9817 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.3151, allocations: 0 / 0.9817 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.999e-05/0.3152, allocations: 15.98 kB / 0.9817 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.3152, allocations: 7.938 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.3153, allocations: 49.61 kB / 0.9817 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.3154, allocations: 35.92 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.3154, allocations: 4 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.575e-06/0.3154, allocations: 0 / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3154, allocations: 0 / 0.9818 GB, free: 25.61 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.0005705/0.316, allocations: 363.7 kB / 0.9821 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.316, allocations: 8.031 kB / 0.9821 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.3161, allocations: 8.844 kB / 0.9821 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.731e-05/0.3162, allocations: 176.2 kB / 0.9823 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3162, allocations: 384 / 0.9823 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.3162, allocations: 8.375 kB / 0.9823 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.3165, allocations: 70.22 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3165, allocations: 4.125 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.3165, allocations: 3.938 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3165, allocations: 0 / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.3167, allocations: 59.94 kB / 0.9825 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000413/0.3171, allocations: 280.7 kB / 0.9827 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.3173, allocations: 70.48 kB / 0.9828 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.015e-05/0.3174, allocations: 40.91 kB / 0.9828 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.3174, allocations: 0 / 0.9828 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.3176, allocations: 83.38 kB / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3176, allocations: 0 / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004025/0.318, allocations: 145.6 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.3181, allocations: 51.41 kB / 0.9831 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.991e-05/0.3182, allocations: 109.8 kB / 0.9832 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.3182, allocations: 25.7 kB / 0.9832 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.128e-05/0.3183, allocations: 84.05 kB / 0.9833 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.3183, allocations: 23.73 kB / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.3183, allocations: 0 / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.412e-05/0.3184, allocations: 318.8 kB / 0.9836 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.3185, allocations: 35.97 kB / 0.9837 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.48e-05/0.3186, allocations: 64.2 kB / 0.9837 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3187, allocations: 104.1 kB / 0.9838 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3188, allocations: 7.984 kB / 0.9838 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002296/0.319, allocations: 117.6 kB / 0.9839 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.319, allocations: 7.984 kB / 0.984 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.319, allocations: 0 / 0.984 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.319, allocations: 8.125 kB / 0.984 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3192, allocations: 23.92 kB / 0.984 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.3192, allocations: 0 / 0.984 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.572e-05/0.3193, allocations: 11.91 kB / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.3193, allocations: 11.98 kB / 0.984 GB, free: 23.08 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 8.113e-05/0.3194, allocations: 120.7 kB / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.3194, allocations: 4 kB / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.3197, allocations: 122 kB / 0.9842 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3197, allocations: 0 / 0.9842 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3197, allocations: 0 / 0.9842 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3197, allocations: 4 kB / 0.9842 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003925/0.3201, allocations: 378.3 kB / 0.9846 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3201, allocations: 0 / 0.9846 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.037e-05/0.3202, allocations: 16.23 kB / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3202, allocations: 0 / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3202, allocations: 8 kB / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3202, allocations: 0 / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3202, allocations: 4.172 kB / 0.9846 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002557/0.3205, allocations: 211.9 kB / 0.9848 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/0.3205, allocations: 84.95 kB / 0.9849 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.3205, allocations: 3.984 kB / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.04e-05/0.3206, allocations: 12 kB / 0.9849 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.3207, allocations: 7.984 kB / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.3207, allocations: 7.938 kB / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.808e-05/0.3207, allocations: 87.2 kB / 0.985 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3207, allocations: 0 / 0.985 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002326/0.321, allocations: 27.94 kB / 0.9851 GB, free: 21.9 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.0001478/0.3211, allocations: 98.34 kB / 0.9852 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.3214, allocations: 87.94 kB / 0.9852 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3214, allocations: 4.25 kB / 0.9852 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.3215, allocations: 31.98 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.3218, allocations: 11.98 kB / 0.9853 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.3221, allocations: 144.5 kB / 0.9854 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.3222, allocations: 0.6848 MB / 0.9861 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.519e-05/0.3223, allocations: 7.984 kB / 0.9861 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.686e-05/0.3223, allocations: 11.44 kB / 0.9861 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.3223, allocations: 3.938 kB / 0.9861 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of Templates: time 0.003109/0.3254, allocations: 0.7156 MB / 0.9868 GB, free: 20.05 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)