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.909/4.909, allocations: 0.5623 GB / 0.5769 GB, free: 3.391 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.002484/0.002483, allocations: 359.8 kB / 0.644 GB, free: 185.6 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 3.976/3.976, allocations: 410.7 MB / 1.112 GB, free: 5.902 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.001784/0.001784, allocations: 182.4 kB / 1.225 GB, free: 6.082 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005016/0.0005018, allocations: 8 kB / 1.348 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5919/0.5925, 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.001332/0.5938, allocations: 1.101 MB / 1.462 GB, free: 283.2 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0005179/0.5944, allocations: 262.5 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.187e-05/0.5945, allocations: 2.062 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 6.389e-05/0.5945, allocations: 3.938 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.5947, allocations: 11.92 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001255/0.5948, allocations: 27.91 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 8.091e-05/0.5949, allocations: 51.78 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.681e-05/0.595, allocations: 5.375 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 9.034e-05/0.5951, allocations: 19.92 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.366e-05/0.5952, allocations: 32.64 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.5952, allocations: 4 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 1.404e-05/0.5952, allocations: 0.5312 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.5953, allocations: 16.52 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 3.872e-05/0.5953, allocations: 40.89 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 7.532e-05/0.5954, allocations: 30.03 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.594e-06/0.5954, allocations: 11.94 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.311e-06/0.5954, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.198e-06/0.5955, allocations: 0 / 1.462 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.0003992/0.5959, allocations: 377 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.5959, allocations: 15.61 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.596, allocations: 13.25 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.5961, allocations: 190.9 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.5961, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.5962, allocations: 5.188 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.5964, allocations: 73.67 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.357e-06/0.5964, allocations: 0.9062 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.5964, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.63e-06/0.5964, allocations: 4.906 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.5966, allocations: 46.08 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004059/0.597, allocations: 303.2 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.5972, allocations: 67.91 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.5973, allocations: 68.83 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.5973, allocations: 5.891 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.5976, allocations: 118.4 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 2.556e-06/0.5976, allocations: 0.625 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0004949/0.5981, allocations: 204.6 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.5981, allocations: 116.6 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.093e-05/0.5982, allocations: 117.8 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.5983, allocations: 33.7 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.5983, allocations: 84.78 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.364e-05/0.5983, allocations: 35.69 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.468e-06/0.5984, allocations: 0.5625 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.5984, allocations: 323.6 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.5985, allocations: 44.88 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.5987, allocations: 103.8 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.5989, allocations: 80.09 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.435e-06/0.5989, allocations: 4.812 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003831/0.5993, allocations: 210.6 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.5993, allocations: 29.7 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.5993, allocations: 5.5 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.5994, allocations: 7.953 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.5995, allocations: 20.77 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.791e-06/0.5995, allocations: 7.938 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.5996, allocations: 16.5 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.5997, allocations: 5.531 kB / 1.465 GB, free: 279.7 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.0001316/0.5998, allocations: 172.1 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.5998, allocations: 7.906 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.663e-05/0.5999, allocations: 12.38 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.833e-06/0.5999, allocations: 0 / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5999, allocations: 3.953 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.137e-06/0.5999, allocations: 1.172 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.6001, allocations: 194.5 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-06/0.6001, allocations: 0 / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.849e-05/0.6001, allocations: 4.5 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.6002, allocations: 5.781 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.6002, allocations: 3.984 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.241e-06/0.6002, allocations: 3.938 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.6002, allocations: 0 / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.6006, allocations: 234.2 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.703e-05/0.6007, allocations: 85.7 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.6007, allocations: 7.984 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.583e-05/0.6008, allocations: 8.938 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.6009, allocations: 14.56 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.6009, allocations: 4 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.905e-05/0.601, allocations: 91.22 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.04e-07/0.601, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003253/0.6013, allocations: 20 kB / 1.466 GB, free: 278.8 MB / 0.8542 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 (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.0001133/0.6014, allocations: 124.5 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003511/0.6018, allocations: 170 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.589e-06/0.6018, allocations: 0 / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.602, allocations: 202.4 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.6023, allocations: 8 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004038/0.6027, allocations: 186.8 kB / 1.466 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.6029, allocations: 0.6965 MB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.92e-05/0.6029, allocations: 9.906 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.603, allocations: 12.41 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.67e-06/0.603, allocations: 0 / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.003498/0.6065, allocations: 0.8663 MB / 1.468 GB, free: 276.5 MB / 0.8542 GB