Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, 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.001029/0.001029, allocations: 196.7 kB / 16.14 MB, free: 6.711 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.256/1.256, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.448/2.448, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 65.84 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2336, allocations: 157.4 MB / 1.052 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00198/0.2356, allocations: 1.154 MB / 1.053 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.2368, allocations: 1.112 MB / 1.054 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.2369, allocations: 4 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.211e-05/0.237, allocations: 15.86 kB / 1.054 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.2371, allocations: 27.72 kB / 1.054 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000366/0.2375, allocations: 135.7 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000261/0.2378, allocations: 315.1 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.2379, allocations: 48.25 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2381, allocations: 119.6 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.2382, allocations: 139.4 kB / 1.055 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.2383, allocations: 16 kB / 1.055 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.485e-05/0.2383, allocations: 23.94 kB / 1.055 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.2384, allocations: 63.8 kB / 1.055 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.2385, allocations: 131.3 kB / 1.055 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002191/0.2387, allocations: 291.2 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2387, allocations: 4 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.52e-07/0.2387, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.2387, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001061/0.2398, allocations: 0.616 MB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2398, allocations: 15.97 kB / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.2399, allocations: 62.72 kB / 1.056 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.194e-05/0.24, allocations: 32.56 kB / 1.056 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.2401, allocations: 200.8 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.2403, allocations: 264.3 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.2403, allocations: 28.38 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.2407, allocations: 266 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.2408, allocations: 3.938 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.2408, allocations: 8 kB / 1.057 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.2408, allocations: 8 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003746/0.2412, allocations: 175.8 kB / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008951/0.2421, allocations: 0.7776 MB / 1.058 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004088/0.2425, allocations: 207.7 kB / 1.058 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.2428, allocations: 134.5 kB / 1.058 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.2428, allocations: 11.98 kB / 1.058 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.2433, allocations: 311.8 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.723e-06/0.2433, allocations: 0 / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.0008891/0.2442, allocations: 483 kB / 1.059 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.2442, allocations: 118.8 kB / 1.059 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.2444, allocations: 176.3 kB / 1.059 GB, free: 436 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.2444, allocations: 37.7 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.433e-05/0.2445, allocations: 125.3 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/0.2446, allocations: 150 kB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.2447, allocations: 106.4 kB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.142e-05/0.2448, allocations: 334.8 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.2451, allocations: 149.2 kB / 1.06 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000309/0.2454, allocations: 252.8 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000537/0.2459, allocations: 405.9 kB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2459, allocations: 0 / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007472/0.2467, allocations: 493.2 kB / 1.061 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2467, allocations: 15.81 kB / 1.061 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2467, allocations: 4 kB / 1.061 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2468, allocations: 4 kB / 1.061 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.2471, allocations: 99.83 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.2471, allocations: 4 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.2474, allocations: 59.64 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.2474, allocations: 16 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.0001368/0.2475, allocations: 171.3 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.2476, allocations: 31.56 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.2477, allocations: 33.86 kB / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2477, allocations: 4 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2477, allocations: 4 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2477, allocations: 3.984 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.248, allocations: 349.2 kB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.248, allocations: 0 / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/0.2484, allocations: 71.89 kB / 1.062 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2484, allocations: 7.938 kB / 1.062 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.042e-05/0.2484, allocations: 19.98 kB / 1.062 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2484, allocations: 0 / 1.062 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2484, allocations: 4 kB / 1.062 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000909/0.2493, allocations: 0.579 MB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.2494, allocations: 112.6 kB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.325e-05/0.2494, allocations: 11.98 kB / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.2497, allocations: 31.97 kB / 1.063 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2498, allocations: 51.98 kB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.2498, allocations: 16 kB / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.309e-05/0.2499, allocations: 128.3 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2499, allocations: 4 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002916/0.2502, allocations: 80 kB / 1.063 GB, free: 12.31 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001167/0.2514, allocations: 1.15 MB / 1.064 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006179/0.252, allocations: 381.2 kB / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.252, allocations: 0 / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.2523, allocations: 204.8 kB / 1.065 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2526, allocations: 48.3 kB / 1.065 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.2561, allocations: 3.231 MB / 1.068 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.2563, allocations: 0.7647 MB / 1.069 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001521/0.2565, allocations: 43.23 kB / 1.069 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.2566, allocations: 91.55 kB / 1.069 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2566, allocations: 0 / 1.069 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.128/2.385, allocations: 5.871 MB / 1.075 GB, free: 484 kB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/2.385, allocations: 216.6 kB / 1.075 GB, free: 220 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.65/5.035, allocations: 0 / 1.075 GB, free: 220 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1)