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.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_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.001782/0.001782, 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.002065/0.002065, allocations: 198.8 kB / 16.54 MB, free: 6.672 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.72/2.72, allocations: 461.9 MB / 0.7347 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 68 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3667, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003965/0.3708, allocations: 1.97 MB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001315/0.3721, allocations: 0.662 MB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.3723, allocations: 4 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.936e-05/0.3724, allocations: 19.69 kB / 1.056 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.3727, allocations: 43.58 kB / 1.056 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005893/0.3733, allocations: 155.7 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.3737, allocations: 319.2 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.3739, allocations: 44.39 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.3742, allocations: 135.5 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.3745, allocations: 151.4 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.684e-05/0.3746, allocations: 32 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.147e-05/0.3747, allocations: 28 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.448e-05/0.3748, allocations: 71.8 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.3749, allocations: 147.3 kB / 1.057 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.3753, allocations: 295.3 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3753, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3753, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.504e-05/0.3753, allocations: 3.984 kB / 1.057 GB, free: 4.172 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.001472/0.3768, allocations: 0.6236 MB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.3769, allocations: 16.5 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.485e-05/0.3769, allocations: 54.73 kB / 1.058 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3771, allocations: 36.66 kB / 1.058 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.3773, allocations: 200.8 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002849/0.3776, allocations: 268.3 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.3776, allocations: 24.38 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005422/0.3782, allocations: 261.7 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.3782, allocations: 7.938 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.3783, allocations: 7.984 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3783, allocations: 4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.3787, allocations: 175.9 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.38, allocations: 0.7776 MB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005176/0.3805, allocations: 199.7 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.3808, allocations: 139 kB / 1.06 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.3808, allocations: 8.375 kB / 1.06 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000602/0.3814, allocations: 315.4 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 4.698e-06/0.3815, allocations: 4 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.00102/0.3825, allocations: 486.4 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/0.3826, allocations: 118.8 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3828, allocations: 179.3 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.3828, allocations: 41.7 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.3829, allocations: 113.3 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3831, allocations: 154 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.3834, allocations: 102.3 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3835, allocations: 342.8 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.384, allocations: 145.2 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.3844, allocations: 256.7 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006662/0.3851, allocations: 394.1 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3851, allocations: 0 / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009278/0.386, allocations: 492.8 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.386, allocations: 9.406 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3861, allocations: 3.938 kB / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.3861, allocations: 8 kB / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.3865, allocations: 99.81 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.3865, allocations: 12 kB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.3868, allocations: 51.66 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.3868, allocations: 20 kB / 1.063 GB, free: 13.7 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.000185/0.387, allocations: 164 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/0.3871, allocations: 39.5 kB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.3871, allocations: 33.88 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3872, allocations: 7.938 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3872, allocations: 0 / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3872, allocations: 7.984 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.3876, allocations: 349.2 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3876, allocations: 7.938 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.388, allocations: 71.89 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.388, allocations: 0 / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.388, allocations: 12 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.388, allocations: 4 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.388, allocations: 8.703 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.3891, allocations: 0.5784 MB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.3892, allocations: 108.7 kB / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.3892, allocations: 12 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3895, allocations: 27.97 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.3896, allocations: 59.92 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.3897, allocations: 16 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.638e-05/0.3898, allocations: 125.3 kB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3898, allocations: 3.938 kB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003454/0.3901, allocations: 80 kB / 1.064 GB, free: 11.9 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.001439/0.3916, allocations: 1.15 MB / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007941/0.3924, allocations: 411.5 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3924, allocations: 4 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.3928, allocations: 200.6 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3931, allocations: 47.91 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004273/0.3974, allocations: 3.162 MB / 1.069 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.3978, allocations: 0.7608 MB / 1.07 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000165/0.3979, allocations: 43.22 kB / 1.07 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.3981, allocations: 87.41 kB / 1.07 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3981, allocations: 0 / 1.07 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.427, allocations: 6.565 MB / 1.077 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.971, allocations: 14.09 kB / 1.077 GB, free: 15.42 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