Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.232/2.232, allocations: 251.1 MB / 266.7 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001366/0.001366, allocations: 181.7 kB / 326.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.413/2.413, allocations: 205.4 MB / 0.5772 GB, free: 21.1 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009733/0.0009731, allocations: 91.3 kB / 0.6817 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004909/0.0004912, allocations: 11.53 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2229, allocations: 106.3 MB / 0.8995 GB, free: 66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2294/0.4524, allocations: 132.1 MB / 1.028 GB, free: 13.75 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.4528, allocations: 75.95 kB / 1.029 GB, free: 13.67 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.0184/0.4712, allocations: 3.692 MB / 1.032 GB, free: 9.98 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.775e-06/0.4712, allocations: 0 / 1.032 GB, free: 9.98 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 1.692e-05/0.4713, allocations: 4 kB / 1.032 GB, free: 9.977 MB / 0.6824 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001205/0.4725, allocations: 472.2 kB / 1.033 GB, free: 9.461 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4726, allocations: 12.03 kB / 1.033 GB, free: 9.449 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.274e-05/0.4726, allocations: 20.73 kB / 1.033 GB, free: 9.43 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004261/0.4731, allocations: 234.1 kB / 1.033 GB, free: 9.164 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.4731, allocations: 16.38 kB / 1.033 GB, free: 9.148 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.4732, allocations: 16.36 kB / 1.033 GB, free: 9.133 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006517/0.4739, allocations: 190.1 kB / 1.033 GB, free: 8.941 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.4739, allocations: 4.188 kB / 1.033 GB, free: 8.938 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.013e-05/0.474, allocations: 7.922 kB / 1.033 GB, free: 8.93 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.474, allocations: 4 kB / 1.033 GB, free: 8.926 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004212/0.4744, allocations: 103.9 kB / 1.033 GB, free: 8.824 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.4755, allocations: 436.3 kB / 1.034 GB, free: 8.348 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.476, allocations: 142.5 kB / 1.034 GB, free: 8.199 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.4764, allocations: 104.8 kB / 1.034 GB, free: 8.094 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.4764, allocations: 4 kB / 1.034 GB, free: 8.09 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006185/0.4771, allocations: 213 kB / 1.034 GB, free: 7.867 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=28): time 4.108e-06/0.4771, allocations: 0 / 1.034 GB, free: 7.867 MB / 0.6824 GB Notification: Performance of matching and sorting (n=28): time 0.00154/0.4786, allocations: 457 kB / 1.034 GB, free: 7.418 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.4787, allocations: 55.41 kB / 1.035 GB, free: 7.352 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.479, allocations: 147.6 kB / 1.035 GB, free: 7.195 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.479, allocations: 37.7 kB / 1.035 GB, free: 7.152 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 8.129e-05/0.4791, allocations: 100.6 kB / 1.035 GB, free: 7.051 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4793, allocations: 75.11 kB / 1.035 GB, free: 6.977 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.308e-05/0.4793, allocations: 19.94 kB / 1.035 GB, free: 6.957 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.4795, allocations: 330.8 kB / 1.035 GB, free: 6.625 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/0.4799, allocations: 100.7 kB / 1.035 GB, free: 6.523 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.4803, allocations: 168.3 kB / 1.035 GB, free: 6.332 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/0.4807, allocations: 117.4 kB / 1.036 GB, free: 6.219 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.4808, allocations: 0 / 1.036 GB, free: 6.219 MB / 0.6824 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001051/0.4818, allocations: 347.3 kB / 1.036 GB, free: 5.875 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4819, allocations: 4 kB / 1.036 GB, free: 5.871 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4819, allocations: 4 kB / 1.036 GB, free: 5.867 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.4819, allocations: 4 kB / 1.036 GB, free: 5.863 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005456/0.4825, allocations: 71.89 kB / 1.036 GB, free: 5.793 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.4825, allocations: 7.938 kB / 1.036 GB, free: 5.785 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.4829, allocations: 43.8 kB / 1.036 GB, free: 5.742 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.4829, allocations: 15.98 kB / 1.036 GB, free: 5.727 MB / 0.6824 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002903/0.4832, allocations: 169.8 kB / 1.036 GB, free: 5.551 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.4833, allocations: 15.91 kB / 1.036 GB, free: 5.535 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.4834, allocations: 13.86 kB / 1.036 GB, free: 5.52 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4834, allocations: 4 kB / 1.036 GB, free: 5.516 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.4834, allocations: 0 / 1.036 GB, free: 5.516 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4834, allocations: 4 kB / 1.036 GB, free: 5.512 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.4853, allocations: 0.7342 MB / 1.037 GB, free: 4.723 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4853, allocations: 0 / 1.037 GB, free: 4.723 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.94e-05/0.4854, allocations: 20 kB / 1.037 GB, free: 4.703 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.4855, allocations: 0 / 1.037 GB, free: 4.703 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.4855, allocations: 11.97 kB / 1.037 GB, free: 4.691 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.4855, allocations: 3.938 kB / 1.037 GB, free: 4.688 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4856, allocations: 0 / 1.037 GB, free: 4.688 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.4868, allocations: 468.3 kB / 1.037 GB, free: 4.215 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4869, allocations: 100.8 kB / 1.038 GB, free: 4.098 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.487, allocations: 19.97 kB / 1.038 GB, free: 4.078 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.4873, allocations: 23.92 kB / 1.038 GB, free: 4.055 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.414e-05/0.4874, allocations: 19.97 kB / 1.038 GB, free: 4.035 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-05/0.4875, allocations: 19.97 kB / 1.038 GB, free: 4.016 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 0.0001144/0.4876, allocations: 105.8 kB / 1.038 GB, free: 3.914 MB / 0.6824 GB Notification: Performance of sort global known variables: time 4.41e-07/0.4877, allocations: 0 / 1.038 GB, free: 3.914 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0004619/0.4881, allocations: 59.98 kB / 1.038 GB, free: 3.855 MB / 0.6824 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002361/0.4884, allocations: 129.4 kB / 1.038 GB, free: 3.723 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.0009178/0.4893, allocations: 259.7 kB / 1.038 GB, free: 3.469 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4893, allocations: 320 / 1.038 GB, free: 3.469 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.4898, allocations: 127.9 kB / 1.038 GB, free: 3.344 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005674/0.4904, allocations: 35.91 kB / 1.038 GB, free: 3.309 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009949/0.4914, allocations: 347.2 kB / 1.039 GB, free: 2.938 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.4918, allocations: 0.721 MB / 1.039 GB, free: 2.188 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 0.0001497/0.492, allocations: 26.12 kB / 1.039 GB, free: 2.164 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.4921, allocations: 19.42 kB / 1.039 GB, free: 2.145 MB / 0.6824 GB Notification: Performance of SimCode: time 1.363e-06/0.4921, allocations: 3.938 kB / 1.039 GB, free: 2.141 MB / 0.6824 GB Notification: Performance of Templates: time 0.009046/0.5011, allocations: 2.493 MB / 1.042 GB, free: 15.66 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)