Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.84/4.84, allocations: 0.5623 GB / 0.5775 GB, free: 3.328 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003547/0.003547, allocations: 359.9 kB / 0.6447 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.336/4.336, allocations: 410.7 MB / 1.113 GB, free: 5.887 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001797/0.001797, allocations: 183.3 kB / 1.226 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004951, allocations: 12 kB / 1.349 GB, free: 8.176 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7702/0.7707, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002056/0.7729, allocations: 1.105 MB / 1.462 GB, free: 283.2 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0007891/0.7737, allocations: 261.9 kB / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.717e-05/0.7738, allocations: 0 / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 8.841e-05/0.7739, allocations: 6.938 kB / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.7741, allocations: 11.92 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.7743, allocations: 27.91 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001194/0.7744, allocations: 51.78 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.467e-05/0.7745, allocations: 4 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.7746, allocations: 24.67 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.7748, allocations: 27.89 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.7748, allocations: 4.594 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 2.221e-05/0.7749, allocations: 5.625 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 3.651e-05/0.7749, allocations: 7.938 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.115e-05/0.775, allocations: 33.7 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.7751, allocations: 42.02 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.7751, allocations: 1.094 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7752, allocations: 3.938 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.7752, allocations: 0 / 1.463 GB, free: 282.7 MB / 0.8542 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.0005655/0.7757, allocations: 382.5 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.7758, allocations: 15.62 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.7759, allocations: 4.875 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.7761, allocations: 186.9 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.7761, allocations: 4 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.7762, allocations: 10.16 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.7765, allocations: 78.73 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.7765, allocations: 0 / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.7765, allocations: 4 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.7766, allocations: 2.156 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.7768, allocations: 43.97 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.7775, allocations: 293.9 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.7777, allocations: 75.81 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.7779, allocations: 66.83 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.778, allocations: 1.031 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003306/0.7783, allocations: 118.4 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 3.336e-06/0.7783, allocations: 3.938 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0007694/0.7791, allocations: 207.1 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.7792, allocations: 111.3 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.7793, allocations: 114.6 kB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.7794, allocations: 30.2 kB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.717e-05/0.7794, allocations: 86.89 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.7795, allocations: 35.62 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.7795, allocations: 7.938 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.7796, allocations: 322.8 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.7798, allocations: 39.98 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.7801, allocations: 107.9 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.7804, allocations: 81.81 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.7804, allocations: 0 / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006321/0.781, allocations: 210.3 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.7811, allocations: 37.28 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.7811, allocations: 5.031 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.7812, allocations: 4 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.7814, allocations: 23.94 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.7814, allocations: 10.53 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.7816, allocations: 19.91 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.7817, allocations: 4 kB / 1.466 GB, free: 279.8 MB / 0.8542 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.7819, allocations: 172.2 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.7819, allocations: 7.906 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.587e-05/0.782, allocations: 13.88 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.782, allocations: 0 / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.782, allocations: 3.938 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.7821, allocations: 85 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.7821, allocations: 13.73 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.7823, allocations: 4 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.7824, allocations: 3.938 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007209/0.7831, allocations: 357.4 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006646/0.7838, allocations: 384.9 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002887/0.7841, allocations: 116.9 kB / 1.467 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.345e-05/0.7842, allocations: 88.25 kB / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of Backend: time 6.51e-07/0.7842, allocations: 0 / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008824/0.7851, allocations: 204.5 kB / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0007031/0.7858, allocations: 0.7024 MB / 1.468 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.005355/0.7912, allocations: 0.9218 MB / 1.469 GB, free: 276.7 MB / 0.8542 GB