Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009171/0.009171, allocations: 104.3 kB / 15.73 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 190.1 kB / 16.67 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.1 MB / 222.6 MB, free: 4.465 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.623/1.623, allocations: 251.7 MB / 0.5094 GB, free: 3.027 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 72.31 kB / 0.7258 GB, free: 9.035 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2759, allocations: 104.7 MB / 0.828 GB, free: 232 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002749/0.2787, allocations: 1.386 MB / 0.8294 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005637/0.2793, allocations: 240.5 kB / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.758e-05/0.2793, allocations: 0 / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.2794, allocations: 3.938 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.2795, allocations: 3.938 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.2797, allocations: 27.91 kB / 0.8296 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.2798, allocations: 59.78 kB / 0.8297 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.28, allocations: 11.98 kB / 0.8297 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.219e-05/0.2801, allocations: 19.92 kB / 0.8297 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.403e-05/0.2801, allocations: 19.92 kB / 0.8297 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.2801, allocations: 4 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.419e-05/0.2802, allocations: 4 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.2802, allocations: 7.984 kB / 0.8298 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.769e-05/0.2802, allocations: 23.86 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.2804, allocations: 43.81 kB / 0.8298 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2804, allocations: 7.984 kB / 0.8298 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2804, allocations: 0 / 0.8298 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.2804, allocations: 0 / 0.8298 GB, free: 14.36 MB / 0.6544 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.0006744/0.2811, allocations: 367.3 kB / 0.8302 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2811, allocations: 12.03 kB / 0.8302 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.2812, allocations: 0.9375 kB / 0.8302 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.2814, allocations: 172.3 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.2814, allocations: 8.375 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.2814, allocations: 4.375 kB / 0.8304 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.2816, allocations: 70.2 kB / 0.8304 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.2816, allocations: 8.109 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2817, allocations: 3.938 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.2817, allocations: 0 / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.2819, allocations: 47.89 kB / 0.8305 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.2823, allocations: 276.9 kB / 0.8308 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.2825, allocations: 58.48 kB / 0.8308 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.937e-05/0.2826, allocations: 24.97 kB / 0.8308 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.2826, allocations: 11.98 kB / 0.8309 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.2829, allocations: 71.33 kB / 0.8309 GB, free: 13.08 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.913e-06/0.2829, allocations: 0 / 0.8309 GB, free: 13.08 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004398/0.2833, allocations: 129.6 kB / 0.831 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.2834, allocations: 59.39 kB / 0.8311 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.185e-05/0.2835, allocations: 97.86 kB / 0.8312 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.2835, allocations: 29.7 kB / 0.8312 GB, free: 12.74 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.2836, allocations: 92.12 kB / 0.8313 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.2836, allocations: 27.73 kB / 0.8313 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.567e-05/0.2837, allocations: 21.7 kB / 0.8314 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.2838, allocations: 318.8 kB / 0.8317 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.526e-05/0.2839, allocations: 23.97 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.284, allocations: 64.22 kB / 0.8317 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.2843, allocations: 88.12 kB / 0.8318 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.2843, allocations: 8 kB / 0.8318 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002667/0.2845, allocations: 113.5 kB / 0.8319 GB, free: 11.94 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2846, allocations: 8 kB / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2846, allocations: 256 / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2846, allocations: 4 kB / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2847, allocations: 19.98 kB / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2847, allocations: 0 / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.631e-05/0.2848, allocations: 16.11 kB / 0.832 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.2848, allocations: 4 kB / 0.832 GB, free: 11.89 MB / 0.6544 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.536e-05/0.2849, allocations: 124.5 kB / 0.8321 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.2849, allocations: 4 kB / 0.8321 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.2852, allocations: 102.3 kB / 0.8322 GB, free: 11.65 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2853, allocations: 0 / 0.8322 GB, free: 11.65 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2853, allocations: 4 kB / 0.8322 GB, free: 11.65 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2853, allocations: 7.984 kB / 0.8322 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.2857, allocations: 370.4 kB / 0.8326 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2857, allocations: 0 / 0.8326 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.2858, allocations: 11.98 kB / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.2858, allocations: 0 / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2858, allocations: 0 / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2858, allocations: 0 / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.2858, allocations: 4 kB / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/0.2861, allocations: 203.4 kB / 0.8328 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.2862, allocations: 93.03 kB / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.2862, allocations: 0 / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-05/0.2863, allocations: 11.98 kB / 0.8329 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.2864, allocations: 4 kB / 0.8329 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.2864, allocations: 11.94 kB / 0.8329 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.759e-05/0.2865, allocations: 87.27 kB / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.71e-07/0.2865, allocations: 0 / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002298/0.2867, allocations: 8.188 kB / 0.833 GB, free: 10.76 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001311/0.2868, allocations: 103.2 kB / 0.8331 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002646/0.2871, allocations: 72 kB / 0.8332 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2871, allocations: 4.062 kB / 0.8332 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2872, allocations: 35.92 kB / 0.8332 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.2875, allocations: 7.984 kB / 0.8332 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003331/0.2879, allocations: 129.5 kB / 0.8333 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.2881, allocations: 0.6883 MB / 0.834 GB, free: 9.664 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.199e-05/0.2882, allocations: 8 kB / 0.834 GB, free: 9.656 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.2882, allocations: 15.44 kB / 0.834 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.2882, allocations: 0 / 0.834 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of Templates: time 0.003119/0.2913, allocations: 0.6895 MB / 0.8347 GB, free: 8.953 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)