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.001159/0.001159, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.008131/0.008131, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.298/1.298, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.436/2.436, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.000283, allocations: 11.88 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2267, allocations: 159.6 MB / 1.059 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00105/0.2277, allocations: 0.8153 MB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2288, allocations: 1.1 MB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.086e-05/0.2289, allocations: 0 / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.285e-05/0.2289, allocations: 11.88 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.845e-05/0.229, allocations: 39.69 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.2294, allocations: 135.7 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.2296, allocations: 311.1 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2298, allocations: 52.23 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.2299, allocations: 115.5 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.2301, allocations: 135.4 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.2301, allocations: 16 kB / 1.061 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.792e-05/0.2301, allocations: 12 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.605e-05/0.2302, allocations: 63.8 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.2303, allocations: 149 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.2305, allocations: 283.2 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2306, allocations: 0 / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2306, allocations: 4 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.2306, allocations: 0 / 1.062 GB, free: 1.629 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.0009819/0.2316, allocations: 0.6043 MB / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2316, allocations: 15.97 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.2317, allocations: 62.72 kB / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.771e-05/0.2317, allocations: 36.56 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.2319, allocations: 200.8 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.232, allocations: 268.3 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.2321, allocations: 28.38 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.2325, allocations: 266.3 kB / 1.063 GB, free: 16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2326, allocations: 11.92 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.2326, allocations: 8 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.2326, allocations: 4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003998/0.233, allocations: 187.8 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.2339, allocations: 0.7815 MB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.2344, allocations: 211.7 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.2346, allocations: 134.5 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.2347, allocations: 11.98 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004734/0.2351, allocations: 324 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 1.533e-06/0.2351, allocations: 4 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.0009267/0.2361, allocations: 0.4989 MB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.2361, allocations: 114.8 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.2363, allocations: 176.3 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.2363, allocations: 41.69 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.2364, allocations: 121.3 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.2365, allocations: 146 kB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/0.2366, allocations: 57.69 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.2367, allocations: 350.7 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.237, allocations: 153.2 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.2373, allocations: 256.8 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.2379, allocations: 406 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.2379, allocations: 4 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007802/0.2387, allocations: 0.4891 MB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2387, allocations: 7.938 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.2387, allocations: 4 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2388, allocations: 11.98 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.2391, allocations: 99.83 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.2391, allocations: 4 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.2394, allocations: 71.66 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.2394, allocations: 20 kB / 1.068 GB, free: 11.08 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.0001483/0.2396, allocations: 171.3 kB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/0.2396, allocations: 35.56 kB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.326e-05/0.2397, allocations: 29.88 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2397, allocations: 4.094 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2397, allocations: 0 / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.2397, allocations: 16.03 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.2401, allocations: 353.2 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2401, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.2404, allocations: 75.89 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.2405, allocations: 7.938 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.2405, allocations: 8 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2405, allocations: 4 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2405, allocations: 0 / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009717/0.2415, allocations: 0.6025 MB / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.2415, allocations: 104.8 kB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.2416, allocations: 15.94 kB / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.2418, allocations: 43.97 kB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.242, allocations: 55.92 kB / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.242, allocations: 19.98 kB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.989e-05/0.2421, allocations: 128.2 kB / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2421, allocations: 0 / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002928/0.2424, allocations: 80 kB / 1.07 GB, free: 9.242 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.001242/0.2436, allocations: 1.158 MB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006616/0.2443, allocations: 402.8 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2443, allocations: 0 / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.2447, allocations: 207.7 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.245, allocations: 48.34 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.2487, allocations: 3.299 MB / 1.075 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.2489, allocations: 0.7647 MB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000146/0.2491, allocations: 38.97 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.2493, allocations: 91.39 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.2493, allocations: 0 / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.521/1.77, allocations: 5.766 MB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/1.771, allocations: 220 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/3.742, allocations: 0 / 1.081 GB, free: 13.17 MB / 0.8419 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)