Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 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_maint.7.0.x_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_maint.7.0.x_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.0009023/0.0009027, 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.0008988/0.0008988, allocations: 190.5 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.108/1.108, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.29/1.29, allocations: 251.7 MB / 0.5088 GB, free: 3.293 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 63.91 kB / 0.6216 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3411, allocations: 104.7 MB / 0.7238 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002069/0.3432, allocations: 1.463 MB / 0.7253 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004338/0.3436, allocations: 287.9 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.994e-05/0.3437, allocations: 0 / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.307e-05/0.3438, allocations: 7.922 kB / 0.7255 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.945e-05/0.3439, allocations: 11.94 kB / 0.7256 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001065/0.344, allocations: 31.97 kB / 0.7256 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.938e-05/0.3441, allocations: 51.84 kB / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.564e-05/0.3441, allocations: 8 kB / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.127e-05/0.3442, allocations: 35.84 kB / 0.7257 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.415e-05/0.3443, allocations: 27.91 kB / 0.7257 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.3443, allocations: 0 / 0.7257 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.326e-05/0.3443, allocations: 4 kB / 0.7257 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.3444, allocations: 7.938 kB / 0.7257 GB, free: 11.19 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.447e-05/0.3444, allocations: 31.86 kB / 0.7257 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.533e-05/0.3445, allocations: 61.73 kB / 0.7258 GB, free: 11.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3445, allocations: 0 / 0.7258 GB, free: 11.1 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.12e-07/0.3445, allocations: 0 / 0.7258 GB, free: 11.1 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.3445, allocations: 0 / 0.7258 GB, free: 11.1 MB / 0.545 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.0003845/0.3449, allocations: 389 kB / 0.7262 GB, free: 10.66 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.345, allocations: 12.03 kB / 0.7262 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.345, allocations: 4.844 kB / 0.7262 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3451, allocations: 192.2 kB / 0.7264 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3451, allocations: 384 / 0.7264 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.3452, allocations: 8.312 kB / 0.7264 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.3453, allocations: 74.16 kB / 0.7264 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.06e-06/0.3453, allocations: 4.188 kB / 0.7265 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.3453, allocations: 7.922 kB / 0.7265 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.3453, allocations: 0 / 0.7265 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.684e-05/0.3454, allocations: 35.98 kB / 0.7265 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003377/0.3458, allocations: 284.9 kB / 0.7268 GB, free: 9.961 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.3459, allocations: 74.44 kB / 0.7268 GB, free: 9.879 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.204e-05/0.346, allocations: 60.89 kB / 0.7269 GB, free: 9.816 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.346, allocations: 3.984 kB / 0.7269 GB, free: 9.812 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.3462, allocations: 117.1 kB / 0.727 GB, free: 9.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.3462, allocations: 0 / 0.727 GB, free: 9.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0003337/0.3465, allocations: 199.3 kB / 0.7272 GB, free: 9.473 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.3466, allocations: 118.8 kB / 0.7273 GB, free: 9.332 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.124e-05/0.3466, allocations: 105.8 kB / 0.7274 GB, free: 9.219 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.3467, allocations: 33.7 kB / 0.7274 GB, free: 9.18 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.19e-05/0.3467, allocations: 80.14 kB / 0.7275 GB, free: 9.098 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.3467, allocations: 35.64 kB / 0.7276 GB, free: 9.062 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.3468, allocations: 37.7 kB / 0.7276 GB, free: 9.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.402e-05/0.3469, allocations: 314.8 kB / 0.7279 GB, free: 8.703 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.73e-05/0.3469, allocations: 43.97 kB / 0.7279 GB, free: 8.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.991e-05/0.3471, allocations: 96.56 kB / 0.728 GB, free: 8.535 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.3473, allocations: 215.8 kB / 0.7282 GB, free: 8.281 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3473, allocations: 3.938 kB / 0.7282 GB, free: 8.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002601/0.3475, allocations: 199.1 kB / 0.7284 GB, free: 8.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3476, allocations: 37.97 kB / 0.7285 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3476, allocations: 8 kB / 0.7285 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.3476, allocations: 4 kB / 0.7285 GB, free: 8.016 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.784e-05/0.3477, allocations: 23.92 kB / 0.7285 GB, free: 7.992 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3477, allocations: 4 kB / 0.7285 GB, free: 7.988 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.288e-05/0.3478, allocations: 7.906 kB / 0.7285 GB, free: 7.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.3478, allocations: 12 kB / 0.7285 GB, free: 7.969 MB / 0.545 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.0001059/0.3479, allocations: 175.3 kB / 0.7287 GB, free: 7.781 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3479, allocations: 19.84 kB / 0.7287 GB, free: 7.762 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.783e-05/0.348, allocations: 4.375 kB / 0.7287 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.348, allocations: 0 / 0.7287 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.348, allocations: 0 / 0.7287 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.348, allocations: 0 / 0.7287 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.3481, allocations: 189.6 kB / 0.7289 GB, free: 7.523 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3481, allocations: 0 / 0.7289 GB, free: 7.523 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.3481, allocations: 11.92 kB / 0.7289 GB, free: 7.512 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3481, allocations: 96 / 0.7289 GB, free: 7.512 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3482, allocations: 7.984 kB / 0.7289 GB, free: 7.504 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.3482, allocations: 12 kB / 0.7289 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3482, allocations: 3.984 kB / 0.7289 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.3485, allocations: 226.9 kB / 0.7291 GB, free: 7.242 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.3485, allocations: 89 kB / 0.7292 GB, free: 7.137 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.3485, allocations: 4 kB / 0.7292 GB, free: 7.133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.677e-05/0.3486, allocations: 8 kB / 0.7292 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.796e-05/0.3486, allocations: 11.92 kB / 0.7293 GB, free: 7.113 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.3486, allocations: 4 kB / 0.7293 GB, free: 7.109 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.78e-05/0.3487, allocations: 91.58 kB / 0.7293 GB, free: 7.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3487, allocations: 0 / 0.7293 GB, free: 7.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002037/0.3489, allocations: 24 kB / 0.7294 GB, free: 6.996 MB / 0.545 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 7.688e-05/0.349, allocations: 103.2 kB / 0.7295 GB, free: 6.887 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.3492, allocations: 175.4 kB / 0.7296 GB, free: 6.703 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3492, allocations: 0 / 0.7296 GB, free: 6.703 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.3494, allocations: 183.4 kB / 0.7298 GB, free: 6.512 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.3496, allocations: 20.67 kB / 0.7298 GB, free: 6.492 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003001/0.3499, allocations: 188.4 kB / 0.73 GB, free: 6.285 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.3501, allocations: 0.6965 MB / 0.7307 GB, free: 5.562 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.324e-05/0.3501, allocations: 8.656 kB / 0.7307 GB, free: 5.551 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.264e-05/0.3501, allocations: 15.38 kB / 0.7307 GB, free: 5.535 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.3501, allocations: 0 / 0.7307 GB, free: 5.535 MB / 0.545 GB Notification: Performance of Templates: time 0.002311/0.3524, allocations: 0.8983 MB / 0.7316 GB, free: 4.648 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)