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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.782/1.782, allocations: 292.3 MB / 308.1 MB, free: 4.289 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.001159/0.001159, allocations: 178.4 kB / 376.9 MB, free: 1.816 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.74/1.74, allocations: 205 MB / 0.6353 GB, free: 9.812 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 99.5 kB / 0.748 GB, free: 61.26 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 47.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3481, allocations: 114.6 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002739/0.3509, allocations: 0.9397 MB / 0.9832 GB, free: 9.438 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002135/0.353, allocations: 1.332 MB / 0.9845 GB, free: 8.09 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.301e-05/0.3531, allocations: 0 / 0.9845 GB, free: 8.09 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.3533, allocations: 7.938 kB / 0.9845 GB, free: 8.082 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.3534, allocations: 35.78 kB / 0.9845 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007215/0.3542, allocations: 235.6 kB / 0.9847 GB, free: 7.816 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.3545, allocations: 259.5 kB / 0.985 GB, free: 7.562 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.3547, allocations: 37.03 kB / 0.985 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.3549, allocations: 103.8 kB / 0.9851 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.3551, allocations: 119.6 kB / 0.9852 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.3552, allocations: 12 kB / 0.9852 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.557e-05/0.3553, allocations: 31.92 kB / 0.9853 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.012e-05/0.3553, allocations: 31.91 kB / 0.9853 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.3555, allocations: 95.61 kB / 0.9854 GB, free: 7.141 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.3558, allocations: 255.5 kB / 0.9856 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3558, allocations: 0 / 0.9856 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3558, allocations: 0 / 0.9856 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3558, allocations: 4 kB / 0.9856 GB, free: 6.887 MB / 0.7136 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.001092/0.3569, allocations: 0.5338 MB / 0.9861 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.357, allocations: 15.97 kB / 0.9862 GB, free: 6.273 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/0.3571, allocations: 24.73 kB / 0.9862 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.3575, allocations: 236 kB / 0.9864 GB, free: 5.98 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.3575, allocations: 12.36 kB / 0.9864 GB, free: 5.969 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.3576, allocations: 24.36 kB / 0.9864 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004147/0.358, allocations: 190.6 kB / 0.9866 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.358, allocations: 192 / 0.9866 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.3581, allocations: 7.922 kB / 0.9866 GB, free: 5.742 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3581, allocations: 4 kB / 0.9866 GB, free: 5.738 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.3583, allocations: 88.17 kB / 0.9867 GB, free: 5.652 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007496/0.359, allocations: 472.7 kB / 0.9872 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.3593, allocations: 138.5 kB / 0.9873 GB, free: 4.996 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.3595, allocations: 88.81 kB / 0.9874 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.3595, allocations: 4 kB / 0.9874 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000375/0.3599, allocations: 207.9 kB / 0.9876 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.3599, allocations: 4 kB / 0.9876 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0008866/0.3608, allocations: 455.5 kB / 0.988 GB, free: 4.234 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.3609, allocations: 59.41 kB / 0.9881 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.361, allocations: 144.5 kB / 0.9882 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.3611, allocations: 45.62 kB / 0.9883 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.824e-05/0.3612, allocations: 100.6 kB / 0.9884 GB, free: 3.863 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.3612, allocations: 67.23 kB / 0.9884 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.3614, allocations: 89.98 kB / 0.9885 GB, free: 3.703 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3616, allocations: 334.8 kB / 0.9888 GB, free: 3.367 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.3619, allocations: 148.7 kB / 0.989 GB, free: 3.223 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003117/0.3622, allocations: 201.2 kB / 0.9892 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005085/0.3627, allocations: 362.3 kB / 0.9895 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.423e-06/0.3627, allocations: 0 / 0.9895 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008186/0.3636, allocations: 0.4976 MB / 0.99 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/0.3636, allocations: 71.52 kB / 0.9901 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3637, allocations: 4 kB / 0.9901 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3637, allocations: 0 / 0.9901 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.3639, allocations: 55.91 kB / 0.9901 GB, free: 1.961 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3639, allocations: 4 kB / 0.9901 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.3643, allocations: 79.55 kB / 0.9902 GB, free: 1.879 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.05e-05/0.3644, allocations: 23.98 kB / 0.9902 GB, free: 1.855 MB / 0.7136 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.0001948/0.3646, allocations: 165.8 kB / 0.9904 GB, free: 1.684 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.3647, allocations: 15.81 kB / 0.9904 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.3647, allocations: 13.88 kB / 0.9904 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3647, allocations: 7.938 kB / 0.9904 GB, free: 1.648 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3647, allocations: 0 / 0.9904 GB, free: 1.648 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3647, allocations: 7.922 kB / 0.9904 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000853/0.3656, allocations: 0.6737 MB / 0.9911 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3656, allocations: 0 / 0.9911 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-05/0.3657, allocations: 4 kB / 0.9911 GB, free: 0.9062 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3657, allocations: 0 / 0.9911 GB, free: 0.9062 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.3657, allocations: 11.97 kB / 0.9911 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.3657, allocations: 7.938 kB / 0.9911 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3657, allocations: 0 / 0.9911 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.3668, allocations: 1.115 MB / 0.9922 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.3669, allocations: 92.92 kB / 0.9923 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.13e-05/0.367, allocations: 15.98 kB / 0.9923 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3671, allocations: 7.984 kB / 0.9923 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.209e-05/0.3671, allocations: 15.92 kB / 0.9923 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/0.3672, allocations: 23.98 kB / 0.9923 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 7.22e-05/0.3673, allocations: 107.2 kB / 0.9925 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 0 / 0.9925 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004088/0.3677, allocations: 60 kB / 0.9925 GB, free: 15.38 MB / 0.7292 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.0002342/0.3679, allocations: 137.4 kB / 0.9926 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007485/0.3687, allocations: 446.4 kB / 0.9931 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3687, allocations: 256 / 0.9931 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000218/0.3689, allocations: 132.5 kB / 0.9932 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.3693, allocations: 27.91 kB / 0.9932 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008525/0.3701, allocations: 0.5351 MB / 0.9937 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.3706, allocations: 0.7323 MB / 0.9945 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.906e-05/0.3706, allocations: 17.73 kB / 0.9945 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.103e-05/0.3707, allocations: 23.44 kB / 0.9945 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.3707, allocations: 0 / 0.9945 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of Templates: time 0.007244/0.3779, allocations: 3.596 MB / 0.998 GB, free: 9.676 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (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)