Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.00151/0.00151, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.002322/0.002322, allocations: 196 kB / 16.14 MB, free: 6.672 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.045/3.045, allocations: 472.6 MB / 0.7447 GB, free: 5.035 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 59.53 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4235/0.4253, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002901/0.4282, allocations: 1.472 MB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006301/0.4289, allocations: 283.2 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.995e-05/0.429, allocations: 3.938 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.4291, allocations: 0 / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001615/0.4293, allocations: 7.938 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.4295, allocations: 43.84 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.4296, allocations: 51.84 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.4298, allocations: 8 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.4299, allocations: 27.91 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.43, allocations: 23.91 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.4301, allocations: 4 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.4301, allocations: 4 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.031e-05/0.4302, allocations: 11.92 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.363e-05/0.4302, allocations: 27.88 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.4304, allocations: 59.77 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4304, allocations: 7.938 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.92e-07/0.4304, allocations: 0 / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.4304, allocations: 0 / 1.069 GB, free: 8.891 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.0006227/0.431, allocations: 393.3 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4311, allocations: 8.031 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.4311, allocations: 8.844 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.4313, allocations: 176.3 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.4314, allocations: 4.375 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.4314, allocations: 8.375 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.4316, allocations: 70.16 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4316, allocations: 4.125 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.4316, allocations: 7.938 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.4316, allocations: 0 / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.4318, allocations: 47.84 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.4323, allocations: 284.8 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.4324, allocations: 74.5 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.4325, allocations: 60.88 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4326, allocations: 0 / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.4328, allocations: 117.1 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.4328, allocations: 4 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004178/0.4332, allocations: 187.3 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.4333, allocations: 122.8 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/0.4334, allocations: 109.8 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.4334, allocations: 33.7 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.4335, allocations: 84.14 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.4335, allocations: 31.64 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.4336, allocations: 41.7 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4337, allocations: 318.8 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.888e-05/0.4338, allocations: 35.92 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.434, allocations: 105.9 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.4342, allocations: 211.8 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4342, allocations: 3.938 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003247/0.4345, allocations: 199 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.4346, allocations: 33.98 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4346, allocations: 11.94 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.4346, allocations: 0 / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.4347, allocations: 23.98 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.4348, allocations: 7.938 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.486e-05/0.4348, allocations: 11.91 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.4349, allocations: 8 kB / 1.072 GB, free: 5.758 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.0001449/0.435, allocations: 175.5 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.435, allocations: 8 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.333e-05/0.4351, allocations: 12.38 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4351, allocations: 0 / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4351, allocations: 4 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.4351, allocations: 3.938 kB / 1.072 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.4352, allocations: 189.5 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4353, allocations: 4 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.084e-05/0.4353, allocations: 3.938 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4353, allocations: 4 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.4353, allocations: 4 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4353, allocations: 4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4353, allocations: 0 / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.4357, allocations: 234.5 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.4357, allocations: 85.02 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.4358, allocations: 8 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.418e-05/0.4359, allocations: 4 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.4359, allocations: 7.984 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.4359, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.786e-05/0.436, allocations: 91.58 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.756e-06/0.436, allocations: 0 / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002337/0.4362, allocations: 27.94 kB / 1.073 GB, free: 4.793 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.0001445/0.4364, allocations: 112.3 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003114/0.4367, allocations: 171.6 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4367, allocations: 0 / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.4369, allocations: 187.3 kB / 1.074 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.4371, allocations: 19.92 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.4375, allocations: 193 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.4378, allocations: 0.6848 MB / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.943e-05/0.4378, allocations: 12.66 kB / 1.074 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.683e-05/0.4379, allocations: 11.44 kB / 1.074 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.4379, allocations: 0 / 1.074 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of Templates: time 0.003136/0.441, allocations: 0.908 MB / 1.075 GB, free: 2.434 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)