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.001007/0.001007, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 197.5 kB / 16.53 MB, free: 6.391 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.585/2.585, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 64.52 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.409, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002901/0.4119, allocations: 1.107 MB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001733/0.4137, allocations: 1.112 MB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.4139, allocations: 0 / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.255e-05/0.414, allocations: 23.67 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.4142, allocations: 47.52 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.4148, allocations: 147.7 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004597/0.4153, allocations: 323.2 kB / 1.056 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.4155, allocations: 56.22 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003211/0.4158, allocations: 127.6 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003115/0.4161, allocations: 147.4 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.538e-05/0.4162, allocations: 28 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.876e-05/0.4163, allocations: 35.94 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.4164, allocations: 79.78 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.4165, allocations: 131.4 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.4169, allocations: 307.2 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4169, allocations: 0 / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.225e-06/0.4169, allocations: 4 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.352e-05/0.417, allocations: 0 / 1.056 GB, free: 4.602 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.001466/0.4184, allocations: 0.6237 MB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4185, allocations: 8.625 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.307e-05/0.4186, allocations: 62.7 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.719e-05/0.4187, allocations: 32.56 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.4189, allocations: 196.8 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002328/0.4191, allocations: 268.3 kB / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.4192, allocations: 28.36 kB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.4197, allocations: 270 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.4197, allocations: 0 / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.4197, allocations: 8 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.4198, allocations: 4 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.4202, allocations: 175.9 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.4213, allocations: 0.7775 MB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.4218, allocations: 203.7 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.4221, allocations: 138.5 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.4221, allocations: 7.984 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005703/0.4227, allocations: 319.6 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.4227, allocations: 224 / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001028/0.4238, allocations: 494.2 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/0.4238, allocations: 110.8 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.424, allocations: 179.4 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.4241, allocations: 37.7 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.4242, allocations: 125.2 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.4243, allocations: 149.9 kB / 1.061 GB, free: 112 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.4245, allocations: 110.4 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4246, allocations: 342.8 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.4249, allocations: 145.2 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.4253, allocations: 252.8 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000624/0.4259, allocations: 393.9 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.426, allocations: 4 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008488/0.4268, allocations: 496.9 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.4269, allocations: 11.94 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.4269, allocations: 0 / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.881e-05/0.4269, allocations: 8 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.4273, allocations: 91.83 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.4273, allocations: 8 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.4276, allocations: 59.66 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.4276, allocations: 23.98 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.0001749/0.4278, allocations: 163.5 kB / 1.063 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.4279, allocations: 31.56 kB / 1.063 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.2e-05/0.428, allocations: 33.86 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.428, allocations: 8 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.428, allocations: 3.938 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.428, allocations: 4 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.4284, allocations: 349.2 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4284, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.4288, allocations: 75.89 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.4288, allocations: 11.88 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.4288, allocations: 11.98 kB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4288, allocations: 4 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4288, allocations: 0 / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.4299, allocations: 0.5797 MB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.672e-05/0.43, allocations: 104.7 kB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.223e-05/0.4301, allocations: 12 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.4303, allocations: 35.95 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.4305, allocations: 59.97 kB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.4305, allocations: 15.98 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00011/0.4306, allocations: 125.2 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4306, allocations: 0 / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003687/0.431, allocations: 76 kB / 1.064 GB, free: 12.32 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.001431/0.4324, allocations: 1.148 MB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009886/0.4334, allocations: 404.2 kB / 1.066 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4335, allocations: 0 / 1.066 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005258/0.434, allocations: 204.5 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.4345, allocations: 44.88 kB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004439/0.4389, allocations: 3.168 MB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.4393, allocations: 0.7647 MB / 1.07 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001645/0.4394, allocations: 39.16 kB / 1.07 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.4396, allocations: 91.41 kB / 1.07 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of SimCode: time 6.42e-07/0.4396, allocations: 0 / 1.07 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.4676, allocations: 6.54 MB / 1.076 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.85, allocations: 12.75 kB / 1.076 GB, free: 15.83 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)