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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001245/0.001245, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00121/0.00121, allocations: 191 kB / 16.25 MB, free: 6.637 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.156/1.156, allocations: 222.9 MB / 239.9 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.269/2.269, allocations: 461.9 MB / 0.7344 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.3 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2324, allocations: 157.4 MB / 1.052 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001864/0.2343, allocations: 1.177 MB / 1.054 GB, free: 7.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.2353, allocations: 1.104 MB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.038e-05/0.2354, allocations: 0 / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.15e-05/0.2354, allocations: 19.86 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.193e-05/0.2355, allocations: 27.72 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.2359, allocations: 131.7 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002487/0.2361, allocations: 327.2 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2363, allocations: 48.25 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2364, allocations: 135.6 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.2366, allocations: 151.3 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.2366, allocations: 32 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.654e-05/0.2367, allocations: 32 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.2367, allocations: 75.8 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.2368, allocations: 139.3 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.2371, allocations: 307.2 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2371, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2371, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.2371, allocations: 0 / 1.056 GB, free: 4.934 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.001028/0.2381, allocations: 0.6198 MB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.2382, allocations: 12.61 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.865e-05/0.2382, allocations: 62.67 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.747e-05/0.2383, allocations: 32.56 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2384, allocations: 204.8 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.2386, allocations: 264.3 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.2387, allocations: 28.38 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.2391, allocations: 258.1 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.2391, allocations: 0 / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.2391, allocations: 12 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2391, allocations: 4 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.2395, allocations: 179.8 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008879/0.2404, allocations: 0.7775 MB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.2408, allocations: 199.7 kB / 1.059 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.2411, allocations: 134.5 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.2411, allocations: 11.98 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004542/0.2416, allocations: 315.8 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.965e-06/0.2416, allocations: 3.938 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.0008676/0.2424, allocations: 495.3 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.2425, allocations: 110.8 kB / 1.06 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.2426, allocations: 179.4 kB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.2427, allocations: 41.69 kB / 1.06 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.2427, allocations: 121.3 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2429, allocations: 146 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.243, allocations: 110.3 kB / 1.06 GB, free: 340 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2431, allocations: 338.8 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.2434, allocations: 149.2 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.2437, allocations: 252.7 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005349/0.2442, allocations: 394.1 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.2442, allocations: 4 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007192/0.245, allocations: 492.9 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.245, allocations: 7.938 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.245, allocations: 4 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.245, allocations: 12 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.2454, allocations: 95.77 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2454, allocations: 11.98 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.2456, allocations: 51.66 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.2457, allocations: 20 kB / 1.062 GB, free: 14.45 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.000135/0.2458, allocations: 163.4 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.352e-05/0.2458, allocations: 35.55 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.719e-05/0.2459, allocations: 29.88 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.2459, allocations: 11.94 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2459, allocations: 0 / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2459, allocations: 3.984 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.2462, allocations: 349.2 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2462, allocations: 0 / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.2466, allocations: 75.89 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.2466, allocations: 7.938 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.2467, allocations: 15.98 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.2467, allocations: 4.703 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2467, allocations: 0 / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00089/0.2476, allocations: 0.5816 MB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.2476, allocations: 108.7 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.2477, allocations: 11.98 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.2479, allocations: 31.97 kB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.248, allocations: 51.94 kB / 1.063 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.2481, allocations: 19.98 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.509e-05/0.2481, allocations: 121.4 kB / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2481, allocations: 0 / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002757/0.2484, allocations: 91.92 kB / 1.064 GB, free: 12.65 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.001149/0.2496, allocations: 1.146 MB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006535/0.2502, allocations: 407.4 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2502, allocations: 0 / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.2506, allocations: 196.9 kB / 1.065 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.2509, allocations: 56.03 kB / 1.065 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.2543, allocations: 3.232 MB / 1.068 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.2545, allocations: 0.7647 MB / 1.069 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001468/0.2547, allocations: 43.23 kB / 1.069 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.2548, allocations: 95.61 kB / 1.069 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2548, allocations: 0 / 1.069 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.164/2.419, allocations: 6.074 MB / 1.075 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/2.419, allocations: 217.2 kB / 1.076 GB, free: 360 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/4.31, allocations: 3.938 kB / 1.076 GB, free: 356 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)