Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",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.001458/0.001459, 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.001427/0.001427, allocations: 197.1 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.283/1.283, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.437/2.437, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001118, allocations: 71.53 kB / 0.8985 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.21, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002411/0.2125, allocations: 2.026 MB / 1.054 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007802/0.2132, allocations: 0.6543 MB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.419e-05/0.2133, allocations: 0 / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.24e-05/0.2134, allocations: 11.86 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/0.2135, allocations: 31.7 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.2138, allocations: 131.9 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002181/0.214, allocations: 303.1 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.2141, allocations: 44.39 kB / 1.055 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.2143, allocations: 115.7 kB / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.2144, allocations: 147.4 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.2144, allocations: 16 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.548e-05/0.2145, allocations: 20 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.2145, allocations: 63.78 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.049e-05/0.2146, allocations: 127.3 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.2148, allocations: 291.3 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2149, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.91e-07/0.2149, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2149, allocations: 0 / 1.056 GB, free: 4.234 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.0009642/0.2158, allocations: 0.6237 MB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2159, allocations: 11.97 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.596e-05/0.2159, allocations: 62.73 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.216, allocations: 28.66 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.2161, allocations: 204.8 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.2163, allocations: 264.3 kB / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.2163, allocations: 28.38 kB / 1.057 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.2167, allocations: 265.6 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.2168, allocations: 4 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.2168, allocations: 15.98 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2168, allocations: 4 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003606/0.2172, allocations: 167.9 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008606/0.218, allocations: 0.7777 MB / 1.058 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.2184, allocations: 215.6 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000219/0.2187, allocations: 130.5 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.2187, allocations: 8.375 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004353/0.2192, allocations: 315.4 kB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.543e-06/0.2192, allocations: 4 kB / 1.059 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.0008599/0.22, allocations: 483.6 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.2201, allocations: 114.8 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.2202, allocations: 192.2 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.2202, allocations: 37.7 kB / 1.06 GB, free: 8 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.2203, allocations: 113.3 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.499e-05/0.2204, allocations: 146 kB / 1.06 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.2205, allocations: 110.3 kB / 1.06 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.2206, allocations: 346.8 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.2209, allocations: 141.2 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.2212, allocations: 252.8 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.2218, allocations: 394 kB / 1.061 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.2218, allocations: 4 kB / 1.061 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007265/0.2225, allocations: 497 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2225, allocations: 8.938 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.2225, allocations: 4 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2226, allocations: 8 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.2229, allocations: 95.81 kB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.2229, allocations: 4 kB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.2232, allocations: 55.66 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.2232, allocations: 24 kB / 1.062 GB, free: 13.75 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.0001263/0.2233, allocations: 163.4 kB / 1.062 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.2234, allocations: 35.56 kB / 1.062 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.107e-05/0.2234, allocations: 29.88 kB / 1.062 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2235, allocations: 8 kB / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2235, allocations: 0 / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2235, allocations: 3.984 kB / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.2238, allocations: 349.3 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2238, allocations: 7.938 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.2241, allocations: 79.89 kB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.2241, allocations: 4 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.2242, allocations: 8 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2242, allocations: 7.938 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2242, allocations: 0 / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008952/0.2251, allocations: 0.5863 MB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.2251, allocations: 104.7 kB / 1.063 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.2252, allocations: 15.98 kB / 1.063 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.2254, allocations: 27.97 kB / 1.063 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.2255, allocations: 59.95 kB / 1.063 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.2256, allocations: 19.98 kB / 1.063 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.891e-05/0.2256, allocations: 128.3 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2256, allocations: 0 / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002778/0.2259, allocations: 80 kB / 1.064 GB, free: 11.95 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.001138/0.2271, allocations: 1.146 MB / 1.065 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005997/0.2277, allocations: 384.3 kB / 1.065 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2277, allocations: 0 / 1.065 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003433/0.228, allocations: 208.5 kB / 1.065 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.2283, allocations: 43.91 kB / 1.065 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.2316, allocations: 3.245 MB / 1.069 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.2319, allocations: 0.7608 MB / 1.069 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000144/0.232, allocations: 38.89 kB / 1.069 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.2322, allocations: 91.41 kB / 1.069 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2322, allocations: 0 / 1.069 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9186/1.151, allocations: 5.87 MB / 1.075 GB, free: 144 kB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002515/1.151, allocations: 226.8 kB / 1.075 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.82/3.971, allocations: 0 / 1.075 GB, free: 15.89 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat does not exist to compare? outputFormat=mat