Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_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.001145/0.001145, allocations: 112.2 kB / 16.37 MB, free: 6 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.001126/0.001126, allocations: 191.9 kB / 17.31 MB, free: 5.617 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.387/1.387, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.839/1.839, allocations: 292.3 MB / 0.5496 GB, free: 17.53 MB / 462.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.001584/0.001584, allocations: 71.89 kB / 0.6729 GB, free: 5.879 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2555, allocations: 114.6 MB / 0.7848 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002414/0.2579, allocations: 0.6816 MB / 0.7855 GB, free: 2.527 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2595, allocations: 1.051 MB / 0.7865 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.723e-05/0.2596, allocations: 4 kB / 0.7865 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.154e-05/0.2596, allocations: 3.938 kB / 0.7865 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.2597, allocations: 11.92 kB / 0.7865 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.2601, allocations: 47.83 kB / 0.7866 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.2602, allocations: 51.84 kB / 0.7866 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.2603, allocations: 7.984 kB / 0.7866 GB, free: 1.336 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.526e-05/0.2604, allocations: 19.94 kB / 0.7866 GB, free: 1.316 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.395e-05/0.2605, allocations: 23.84 kB / 0.7867 GB, free: 1.293 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.2605, allocations: 4 kB / 0.7867 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.105e-05/0.2606, allocations: 23.97 kB / 0.7867 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.2606, allocations: 15.98 kB / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.861e-05/0.2607, allocations: 19.88 kB / 0.7867 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.2609, allocations: 63.83 kB / 0.7868 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2609, allocations: 0 / 0.7868 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.402e-06/0.2609, allocations: 0 / 0.7868 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2609, allocations: 0 / 0.7868 GB, free: 1.168 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.0006484/0.2615, allocations: 363.4 kB / 0.7871 GB, free: 0.7617 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2616, allocations: 12.03 kB / 0.7871 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.2616, allocations: 12.84 kB / 0.7872 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.2618, allocations: 172.3 kB / 0.7873 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.2618, allocations: 4.312 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.2618, allocations: 4.375 kB / 0.7873 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.262, allocations: 66.22 kB / 0.7874 GB, free: 464 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.262, allocations: 8.109 kB / 0.7874 GB, free: 456 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.2621, allocations: 3.938 kB / 0.7874 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2621, allocations: 0 / 0.7874 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.2623, allocations: 47.95 kB / 0.7874 GB, free: 404 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004298/0.2627, allocations: 276.8 kB / 0.7877 GB, free: 76 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.2629, allocations: 62.42 kB / 0.7878 GB, free: 4 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4963/0.7591, allocations: 29.36 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.7592, allocations: 2.938 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.7595, allocations: 73.11 kB / 0.7879 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 2.695e-06/0.7595, allocations: 0.6562 kB / 0.7879 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004874/0.76, allocations: 129.7 kB / 0.788 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.7601, allocations: 58.98 kB / 0.788 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.293e-05/0.7602, allocations: 104.8 kB / 0.7881 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.7602, allocations: 25.7 kB / 0.7882 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.489e-05/0.7602, allocations: 83.52 kB / 0.7883 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.7603, allocations: 26.39 kB / 0.7883 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.7603, allocations: 22.03 kB / 0.7883 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.7604, allocations: 321.2 kB / 0.7886 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.7605, allocations: 27.28 kB / 0.7886 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.7606, allocations: 61.98 kB / 0.7887 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.7609, allocations: 93.62 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.7609, allocations: 0 / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002554/0.7611, allocations: 114.5 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.7612, allocations: 8.781 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.7612, allocations: 0 / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.7612, allocations: 6 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.7613, allocations: 23.05 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.7614, allocations: 5.125 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.319e-05/0.7614, allocations: 11.17 kB / 0.7889 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.7615, allocations: 2.719 kB / 0.7889 GB, free: 48.04 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 7.52e-05/0.7615, allocations: 120.4 kB / 0.7891 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.7616, allocations: 0 / 0.7891 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.7618, allocations: 108.3 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.7618, allocations: 2.688 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.7619, allocations: 3.75 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.7619, allocations: 3.469 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004163/0.7623, allocations: 368.1 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7623, allocations: 0 / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.099e-05/0.7624, allocations: 14.31 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.7624, allocations: 3.375 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.7624, allocations: 0 / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.7624, allocations: 3.25 kB / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7624, allocations: 0 / 0.7895 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.7627, allocations: 202.1 kB / 0.7897 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.7627, allocations: 85.02 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.7627, allocations: 3.125 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-05/0.7628, allocations: 12.25 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.7629, allocations: 13.22 kB / 0.7898 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.7629, allocations: 0.6875 kB / 0.7898 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.255e-05/0.763, allocations: 83.31 kB / 0.7899 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.763, allocations: 0 / 0.7899 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002551/0.7632, allocations: 20.89 kB / 0.7899 GB, free: 47.28 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.000189/0.7634, allocations: 98.25 kB / 0.79 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.7637, allocations: 74.59 kB / 0.7901 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.7637, allocations: 2.688 kB / 0.7901 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.7638, allocations: 37.28 kB / 0.7901 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.7641, allocations: 9.719 kB / 0.7902 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.7645, allocations: 160.3 kB / 0.7903 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.7647, allocations: 0.6831 MB / 0.791 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.127e-05/0.7647, allocations: 12.75 kB / 0.791 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.7647, allocations: 2.094 kB / 0.791 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of Templates: time 0.002452/0.7672, allocations: 0.8996 MB / 0.7919 GB, free: 46.34 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)