Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.425/2.425, allocations: 391.2 MB / 407 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001409, allocations: 201.4 kB / 499.1 MB, free: 4.582 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.688/1.688, allocations: 222.9 MB / 0.7948 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000995/0.0009951, allocations: 112.5 kB / 0.9329 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 56.3 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3244, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00261/0.3271, allocations: 0.9255 MB / 1.219 GB, free: 116.3 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001624/0.3287, allocations: 1.339 MB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.702e-05/0.3288, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.329, allocations: 3.938 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.3291, allocations: 31.77 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.3297, allocations: 250.7 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.3299, allocations: 263.4 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3301, allocations: 21.11 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.3302, allocations: 115.7 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.3305, allocations: 111.6 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.3305, allocations: 16 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-05/0.3306, allocations: 31.92 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 6.772e-05/0.3307, allocations: 35.89 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3308, allocations: 99.61 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.3311, allocations: 249.3 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3311, allocations: 0 / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3311, allocations: 0 / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3311, allocations: 4 kB / 1.221 GB, free: 113.7 MB / 0.823 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.0008732/0.332, allocations: 0.5299 MB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.332, allocations: 15.98 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.228e-05/0.3321, allocations: 28.83 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.3323, allocations: 232.7 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.3324, allocations: 12.38 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.3324, allocations: 16.36 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.3327, allocations: 187.4 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3328, allocations: 192 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.3328, allocations: 11.92 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3328, allocations: 0 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.333, allocations: 96.17 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005348/0.3335, allocations: 472.6 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.3338, allocations: 142.4 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.3339, allocations: 92.81 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.3339, allocations: 8 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.3342, allocations: 207.9 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of pre-optimization done (n=28): time 2.274e-06/0.3342, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.0007273/0.335, allocations: 454.8 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.335, allocations: 59.41 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.3351, allocations: 144.4 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.3352, allocations: 41.69 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.3353, allocations: 100.7 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 4.863e-05/0.3353, allocations: 63.25 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.3354, allocations: 89.98 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.3355, allocations: 334.7 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.3358, allocations: 148.7 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.336, allocations: 205.9 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.3364, allocations: 366.3 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3365, allocations: 4 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006794/0.3371, allocations: 0.4911 MB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.3372, allocations: 67.41 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3372, allocations: 3.984 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.3372, allocations: 4 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.3374, allocations: 47.92 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.3375, allocations: 12.11 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.3378, allocations: 79.56 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.3379, allocations: 19.98 kB / 1.226 GB, free: 108.7 MB / 0.823 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.0001341/0.338, allocations: 171 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.338, allocations: 12 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.3381, allocations: 21.86 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3381, allocations: 0 / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3381, allocations: 0 / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3381, allocations: 7.922 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006653/0.3388, allocations: 0.6667 MB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3388, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.3388, allocations: 11.98 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3388, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.3389, allocations: 15.92 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3389, allocations: 3.938 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3389, allocations: 4 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007995/0.3397, allocations: 1.113 MB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.3397, allocations: 96.86 kB / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.3398, allocations: 19.98 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.3399, allocations: 7.984 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.3399, allocations: 19.92 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.34, allocations: 19.97 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of sorting global known variables: time 5.069e-05/0.34, allocations: 108.3 kB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.34, allocations: 0 / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003914/0.3404, allocations: 60 kB / 1.228 GB, free: 106.2 MB / 0.823 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.0002/0.3406, allocations: 137.5 kB / 1.229 GB, free: 106.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0005756/0.3412, allocations: 443.5 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3412, allocations: 4 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.3414, allocations: 127.7 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.3418, allocations: 37.09 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/0.3425, allocations: 0.5235 MB / 1.23 GB, free: 104.9 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.3426, allocations: 0.7245 MB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 5.976e-05/0.3427, allocations: 21.55 kB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.3427, allocations: 19.44 kB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of SimCode: time 2.11e-07/0.3428, allocations: 3.938 kB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of Templates: time 0.005631/0.3484, allocations: 3.604 MB / 1.234 GB, free: 100.5 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)