Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.008401/0.008401, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.815/1.815, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.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.814/1.814, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0007149/0.0007153, allocations: 15.06 kB / 0.6743 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3562, allocations: 116.3 MB / 0.7879 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001373/0.3576, allocations: 0.5983 MB / 0.7885 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.3597, allocations: 1.317 MB / 0.7898 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.573e-05/0.3598, allocations: 4 kB / 0.7898 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.36, allocations: 15.86 kB / 0.7898 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.3602, allocations: 19.84 kB / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.3612, allocations: 242.9 kB / 0.79 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.3616, allocations: 271.3 kB / 0.7903 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.3618, allocations: 33.09 kB / 0.7903 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.362, allocations: 107.8 kB / 0.7904 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.3622, allocations: 107.6 kB / 0.7905 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.3623, allocations: 12 kB / 0.7905 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3624, allocations: 23.98 kB / 0.7906 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.176e-05/0.3625, allocations: 35.83 kB / 0.7906 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.3626, allocations: 125.3 kB / 0.7907 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.3629, allocations: 243.5 kB / 0.7909 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3629, allocations: 4 kB / 0.7909 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3629, allocations: 0 / 0.7909 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.3629, allocations: 0 / 0.7909 GB, free: 8.438 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009312/0.3639, allocations: 494.8 kB / 0.7914 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3639, allocations: 8.031 kB / 0.7914 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.827e-05/0.364, allocations: 24.75 kB / 0.7915 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.3643, allocations: 236 kB / 0.7917 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.3643, allocations: 16.36 kB / 0.7917 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.3644, allocations: 16.31 kB / 0.7917 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.3648, allocations: 190.8 kB / 0.7919 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3649, allocations: 4.125 kB / 0.7919 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.3649, allocations: 3.938 kB / 0.7919 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3649, allocations: 4 kB / 0.7919 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.3651, allocations: 100.2 kB / 0.792 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.3658, allocations: 472.6 kB / 0.7924 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.3661, allocations: 134.5 kB / 0.7926 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.3663, allocations: 104.7 kB / 0.7927 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.3663, allocations: 4 kB / 0.7927 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.3667, allocations: 208 kB / 0.7929 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.3667, allocations: 0 / 0.7929 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008707/0.3676, allocations: 455.5 kB / 0.7933 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.3677, allocations: 63.34 kB / 0.7934 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.3678, allocations: 148.8 kB / 0.7935 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.3679, allocations: 37.7 kB / 0.7935 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.368, allocations: 104.6 kB / 0.7936 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.7e-05/0.368, allocations: 71.17 kB / 0.7937 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.117e-05/0.3681, allocations: 41.7 kB / 0.7938 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3683, allocations: 342.8 kB / 0.7941 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.3686, allocations: 140.7 kB / 0.7942 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.3689, allocations: 217.2 kB / 0.7944 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.3695, allocations: 362.3 kB / 0.7948 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3695, allocations: 4 kB / 0.7948 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00087/0.3704, allocations: 0.4987 MB / 0.7953 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/0.3704, allocations: 71.39 kB / 0.7953 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3705, allocations: 0 / 0.7953 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3705, allocations: 4 kB / 0.7953 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.3707, allocations: 51.91 kB / 0.7954 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.3707, allocations: 0 / 0.7954 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.3712, allocations: 107.7 kB / 0.7955 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.3712, allocations: 23.98 kB / 0.7955 GB, free: 3.445 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0002021/0.3715, allocations: 165.8 kB / 0.7957 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.3715, allocations: 15.81 kB / 0.7957 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.3715, allocations: 17.86 kB / 0.7957 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3716, allocations: 0 / 0.7957 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3716, allocations: 3.938 kB / 0.7957 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3716, allocations: 7.938 kB / 0.7957 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008742/0.3725, allocations: 0.6623 MB / 0.7964 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3725, allocations: 0 / 0.7964 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.009e-05/0.3725, allocations: 7.984 kB / 0.7964 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3726, allocations: 3.938 kB / 0.7964 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.3726, allocations: 11.98 kB / 0.7964 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3726, allocations: 7.938 kB / 0.7964 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3726, allocations: 3.938 kB / 0.7964 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/0.3732, allocations: 459.8 kB / 0.7968 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.3733, allocations: 96.91 kB / 0.7969 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.278e-05/0.3734, allocations: 19.92 kB / 0.7969 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.3735, allocations: 15.94 kB / 0.797 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.3736, allocations: 15.97 kB / 0.797 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.3736, allocations: 23.98 kB / 0.797 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.59e-05/0.3737, allocations: 102.2 kB / 0.7971 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3737, allocations: 0 / 0.7971 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003466/0.374, allocations: 64 kB / 0.7972 GB, free: 1.66 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002246/0.3743, allocations: 141.4 kB / 0.7973 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000727/0.375, allocations: 454.5 kB / 0.7977 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.375, allocations: 0 / 0.7977 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.3752, allocations: 126.3 kB / 0.7978 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3756, allocations: 31.97 kB / 0.7979 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007375/0.3764, allocations: 355.2 kB / 0.7982 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000737/0.3771, allocations: 0.7206 MB / 0.7989 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.546e-05/0.3772, allocations: 17.55 kB / 0.7989 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.587e-05/0.3773, allocations: 23.42 kB / 0.799 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of SimCode: time 4.1e-07/0.3773, allocations: 0 / 0.799 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of Templates: time 0.007859/0.3851, allocations: 3.384 MB / 0.8023 GB, free: 12.38 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) Environment - environmentSimulation: