Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002065/0.002065, allocations: 193.7 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 472.6 MB / 0.7447 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 65.88 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3563, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00288/0.3592, allocations: 1.449 MB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006292/0.3598, allocations: 287.1 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.3599, allocations: 0 / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.36, allocations: 7.922 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.3602, allocations: 11.92 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.3603, allocations: 27.98 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.988e-05/0.3604, allocations: 55.78 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.251e-05/0.3605, allocations: 15.98 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.137e-05/0.3606, allocations: 23.92 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.3607, allocations: 31.84 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.3608, allocations: 0 / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.805e-05/0.3608, allocations: 4 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.3608, allocations: 7.984 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.999e-05/0.3609, allocations: 31.8 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.361, allocations: 63.78 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3611, allocations: 0 / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3611, allocations: 0 / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3611, allocations: 0 / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005668/0.3616, allocations: 393.3 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3617, allocations: 12.03 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/0.3617, allocations: 4.844 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.3619, allocations: 188.2 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3619, allocations: 384 / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.362, allocations: 8.375 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.3622, allocations: 70.22 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3622, allocations: 4.188 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.3622, allocations: 3.938 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.3622, allocations: 0 / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.3623, allocations: 35.98 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.3628, allocations: 284.8 kB / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.3629, allocations: 82.44 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3631, allocations: 60.88 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3631, allocations: 0 / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.3633, allocations: 113.1 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.3633, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004341/0.3638, allocations: 195.4 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.3639, allocations: 118.8 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.364, allocations: 113.7 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3641, allocations: 33.7 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.3641, allocations: 84.14 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.3642, allocations: 35.62 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.3642, allocations: 37.7 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.3644, allocations: 314.8 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-05/0.3645, allocations: 43.97 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.3647, allocations: 105.7 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.365, allocations: 215.9 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.365, allocations: 3.938 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003297/0.3653, allocations: 199.1 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.3653, allocations: 33.69 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3654, allocations: 4 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3654, allocations: 4.281 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3655, allocations: 27.92 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.3655, allocations: 4 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.3656, allocations: 19.78 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.3656, allocations: 8 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001347/0.3658, allocations: 175.3 kB / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.3658, allocations: 8 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.509e-05/0.3658, allocations: 8.375 kB / 1.072 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3658, allocations: 4 kB / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3658, allocations: 0 / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3658, allocations: 0 / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.366, allocations: 189.5 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.366, allocations: 4 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.366, allocations: 7.984 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.366, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.3661, allocations: 4 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3661, allocations: 4 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3661, allocations: 0 / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.3664, allocations: 226.9 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.3665, allocations: 92.94 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.3666, allocations: 8 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.251e-05/0.3666, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.3667, allocations: 7.984 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3667, allocations: 0 / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.315e-05/0.3668, allocations: 91.27 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3668, allocations: 4 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002371/0.367, allocations: 24 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001856/0.3672, allocations: 105 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002922/0.3675, allocations: 175.2 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3675, allocations: 0.5625 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.3677, allocations: 187.5 kB / 1.073 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.3679, allocations: 16.03 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.3683, allocations: 204.2 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.3686, allocations: 0.6965 MB / 1.074 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.543e-05/0.3687, allocations: 8.656 kB / 1.074 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.191e-05/0.3687, allocations: 11.44 kB / 1.074 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3687, allocations: 0 / 1.074 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of Templates: time 0.003336/0.372, allocations: 0.8895 MB / 1.075 GB, free: 2.387 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)