Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001065/0.001065, allocations: 108 kB / 15.61 MB, free: 152 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.001115/0.001115, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.325/2.325, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.89 kB / 0.8694 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4965/0.4978, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002634/0.5005, allocations: 1.964 MB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000835/0.5013, allocations: 0.6583 MB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.135e-05/0.5014, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 4.663e-05/0.5015, allocations: 23.73 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.478e-05/0.5016, allocations: 43.52 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003617/0.5019, allocations: 147.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000248/0.5022, allocations: 319.2 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.5023, allocations: 44.33 kB / 1.021 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.5025, allocations: 139.5 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.5027, allocations: 151.4 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.5027, allocations: 28 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.975e-05/0.5027, allocations: 32 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.162e-05/0.5028, allocations: 83.77 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.5029, allocations: 127.4 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.5032, allocations: 301.2 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.5032, allocations: 7.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5032, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.855e-06/0.5032, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 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.001037/0.5042, allocations: 0.6237 MB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.5043, allocations: 8.031 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.676e-05/0.5043, allocations: 62.67 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.5044, allocations: 36.55 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.5045, allocations: 200.8 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.5047, allocations: 264.3 kB / 1.023 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.5048, allocations: 28.36 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.5052, allocations: 261.7 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.5052, allocations: 3.984 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.5052, allocations: 15.94 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5053, allocations: 4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.5056, allocations: 171.9 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009082/0.5066, allocations: 0.7814 MB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.507, allocations: 207.7 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.5072, allocations: 134.5 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.5073, allocations: 8.375 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004472/0.5077, allocations: 319.2 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.653e-06/0.5077, allocations: 0 / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.000891/0.5086, allocations: 479 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.5087, allocations: 122.8 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.5088, allocations: 179.4 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.5089, allocations: 37.7 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.116e-05/0.5089, allocations: 117.3 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.509, allocations: 149.9 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.5092, allocations: 102.3 kB / 1.026 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.5093, allocations: 342.8 kB / 1.026 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.5095, allocations: 153.2 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.5099, allocations: 248.7 kB / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005543/0.5104, allocations: 394.1 kB / 1.027 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.5104, allocations: 4 kB / 1.027 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007228/0.5112, allocations: 493.4 kB / 1.027 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.5112, allocations: 8 kB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.5112, allocations: 80 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.5112, allocations: 8 kB / 1.027 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.5116, allocations: 95.77 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.5116, allocations: 15.92 kB / 1.027 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.5118, allocations: 51.66 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.5119, allocations: 24 kB / 1.027 GB, free: 7.93 MB / 0.7794 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.0001404/0.512, allocations: 159.5 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.21e-05/0.512, allocations: 27.66 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.5121, allocations: 33.86 kB / 1.027 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.5121, allocations: 8 kB / 1.028 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5121, allocations: 0 / 1.028 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5121, allocations: 3.938 kB / 1.028 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.5124, allocations: 369.1 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5125, allocations: 3.938 kB / 1.028 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.5128, allocations: 71.89 kB / 1.028 GB, free: 7.207 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.5128, allocations: 4 kB / 1.028 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.5129, allocations: 12 kB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.5129, allocations: 7.984 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.5129, allocations: 0 / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000924/0.5138, allocations: 0.5895 MB / 1.029 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.5139, allocations: 112.7 kB / 1.029 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.5139, allocations: 8 kB / 1.029 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.5141, allocations: 35.95 kB / 1.029 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.5142, allocations: 55.94 kB / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.5143, allocations: 16 kB / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.794e-05/0.5144, allocations: 125.2 kB / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5144, allocations: 0 / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002751/0.5146, allocations: 80.09 kB / 1.029 GB, free: 6.133 MB / 0.7794 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.001163/0.5158, allocations: 1.152 MB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006769/0.5165, allocations: 402.7 kB / 1.03 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5165, allocations: 0 / 1.03 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003401/0.5169, allocations: 204 kB / 1.031 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.5171, allocations: 40.56 kB / 1.031 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.5206, allocations: 3.178 MB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.5208, allocations: 0.7686 MB / 1.035 GB, free: 176 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001338/0.521, allocations: 34.97 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.5211, allocations: 91.41 kB / 1.035 GB, free: 52 kB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5211, allocations: 0 / 1.035 GB, free: 52 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.098/2.619, allocations: 6.539 MB / 1.041 GB, free: 9.664 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/10.74, allocations: 18.33 kB / 1.041 GB, free: 9.648 MB / 0.795 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat does not exist to compare? outputFormat=mat