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.001529/0.001529, allocations: 103.1 kB / 16.35 MB, free: 6.348 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.001744/0.001745, allocations: 194.7 kB / 17.29 MB, free: 5.93 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.567/1.567, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.899/1.899, allocations: 292.3 MB / 0.5496 GB, free: 17.58 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.001465/0.001465, allocations: 59.91 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2167, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001924/0.2186, allocations: 0.6888 MB / 0.7854 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2199, allocations: 1.059 MB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.778e-05/0.2199, allocations: 0 / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.859e-05/0.22, allocations: 3.938 kB / 0.7865 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.164e-05/0.22, allocations: 7.922 kB / 0.7865 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2203, allocations: 51.83 kB / 0.7865 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.868e-05/0.2204, allocations: 43.92 kB / 0.7866 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.2205, allocations: 11.97 kB / 0.7866 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 6.469e-05/0.2206, allocations: 23.92 kB / 0.7866 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.964e-05/0.2206, allocations: 19.92 kB / 0.7866 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.2207, allocations: 4 kB / 0.7866 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.351e-05/0.2207, allocations: 19.92 kB / 0.7867 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.2208, allocations: 19.91 kB / 0.7867 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.512e-05/0.2208, allocations: 19.92 kB / 0.7867 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.221, allocations: 67.78 kB / 0.7868 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.221, allocations: 0 / 0.7868 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.383e-06/0.221, allocations: 0 / 0.7868 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.221, allocations: 0 / 0.7868 GB, free: 1.141 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.0005556/0.2215, allocations: 359.4 kB / 0.7871 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2216, allocations: 12.03 kB / 0.7871 GB, free: 0.7266 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.2216, allocations: 4.844 kB / 0.7871 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.2217, allocations: 180.3 kB / 0.7873 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.2218, allocations: 384 / 0.7873 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2218, allocations: 4.375 kB / 0.7873 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.222, allocations: 70.16 kB / 0.7874 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.222, allocations: 4.125 kB / 0.7874 GB, free: 436 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.222, allocations: 3.938 kB / 0.7874 GB, free: 432 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.222, allocations: 0 / 0.7874 GB, free: 432 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.2222, allocations: 43.95 kB / 0.7874 GB, free: 388 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.2226, allocations: 280.8 kB / 0.7877 GB, free: 56 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.372/0.5947, allocations: 61.14 kB / 0.7877 GB, free: 48.94 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.595, allocations: 26.33 kB / 0.7878 GB, free: 48.93 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.5951, allocations: 2.875 kB / 0.7878 GB, free: 48.93 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004053/0.5955, allocations: 80.31 kB / 0.7878 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 4.268e-06/0.5955, allocations: 0 / 0.7878 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0007042/0.5962, allocations: 121.1 kB / 0.788 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.5963, allocations: 57.97 kB / 0.788 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.5964, allocations: 106.8 kB / 0.7881 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.5964, allocations: 28.33 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.5965, allocations: 89.73 kB / 0.7882 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.5965, allocations: 23.56 kB / 0.7883 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.78e-05/0.5966, allocations: 24.73 kB / 0.7883 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.117e-05/0.5967, allocations: 319.2 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.5969, allocations: 27.22 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.5971, allocations: 57.22 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.5975, allocations: 95.2 kB / 0.7888 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.5975, allocations: 0 / 0.7888 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004427/0.598, allocations: 121.2 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.598, allocations: 6.094 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.598, allocations: 0 / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.598, allocations: 2.719 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.5983, allocations: 23.69 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.5983, allocations: 2.75 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.5984, allocations: 15.03 kB / 0.7889 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.5985, allocations: 2.625 kB / 0.7889 GB, free: 48.14 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 0.0001067/0.5986, allocations: 121.2 kB / 0.789 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.5986, allocations: 3.453 kB / 0.789 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004398/0.5991, allocations: 111.9 kB / 0.7891 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5991, allocations: 0 / 0.7891 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5991, allocations: 0 / 0.7891 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.5991, allocations: 3.328 kB / 0.7891 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006212/0.5998, allocations: 356.8 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.5998, allocations: 1.219 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.5999, allocations: 11.86 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5999, allocations: 5.906 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.6, allocations: 4.703 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.6, allocations: 1.734 kB / 0.7895 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6, allocations: 4.594 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004276/0.6004, allocations: 197.2 kB / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/0.6005, allocations: 87.17 kB / 0.7898 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.6005, allocations: 7.219 kB / 0.7898 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.6007, allocations: 12.36 kB / 0.7898 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.6008, allocations: 6.562 kB / 0.7898 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.6008, allocations: 4.438 kB / 0.7898 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.911e-05/0.6009, allocations: 88.39 kB / 0.7899 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6009, allocations: 1 kB / 0.7899 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004673/0.6014, allocations: 18.11 kB / 0.7899 GB, free: 47.38 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.0001831/0.6016, allocations: 99.22 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004453/0.602, allocations: 77.78 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.602, allocations: 0 / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.6023, allocations: 35.72 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.6027, allocations: 9.672 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.6032, allocations: 131.8 kB / 0.7903 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.6033, allocations: 0.681 MB / 0.7909 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.92e-05/0.6034, allocations: 8.797 kB / 0.7909 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.451e-05/0.6034, allocations: 14.09 kB / 0.7909 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of SimCode: time 5.21e-07/0.6034, allocations: 0 / 0.7909 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of Templates: time 0.005227/0.6087, allocations: 0.8134 MB / 0.7917 GB, free: 46.48 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)