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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 217.3 kB / 22.26 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 256 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.315/3.315, allocations: 0.505 GB / 0.8101 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003682/0.003682, allocations: 67.95 kB / 1.177 GB, free: 17.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.4018, allocations: 180.2 MB / 1.353 GB, free: 8.457 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003743/0.4055, allocations: 2.004 MB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.407, allocations: 0.7523 MB / 1.356 GB, free: 5.684 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.4071, allocations: 7.938 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.317e-05/0.4072, allocations: 19.73 kB / 1.356 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.4074, allocations: 43.52 kB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005734/0.408, allocations: 175.6 kB / 1.356 GB, free: 5.441 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004505/0.4084, allocations: 331.1 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.4086, allocations: 37.14 kB / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.4089, allocations: 143.6 kB / 1.356 GB, free: 4.941 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.4091, allocations: 147.4 kB / 1.356 GB, free: 4.797 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.63e-05/0.4092, allocations: 32 kB / 1.357 GB, free: 4.766 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.006e-05/0.4093, allocations: 36 kB / 1.357 GB, free: 4.73 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.711e-05/0.4094, allocations: 83.72 kB / 1.357 GB, free: 4.648 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.4095, allocations: 135.4 kB / 1.357 GB, free: 4.516 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.4099, allocations: 314.7 kB / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4099, allocations: 0 / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4099, allocations: 0 / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.4099, allocations: 4 kB / 1.357 GB, free: 4.203 MB / 1.045 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.001344/0.4112, allocations: 0.5676 MB / 1.358 GB, free: 3.598 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.4113, allocations: 8.031 kB / 1.358 GB, free: 3.59 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.542e-05/0.4114, allocations: 54.73 kB / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003419/0.4117, allocations: 68.7 kB / 1.358 GB, free: 3.461 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.4121, allocations: 182.2 kB / 1.358 GB, free: 3.258 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003622/0.4124, allocations: 0.4918 MB / 1.358 GB, free: 2.656 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.4125, allocations: 32.31 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005062/0.413, allocations: 269.6 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.413, allocations: 0 / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.413, allocations: 8 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.413, allocations: 8 kB / 1.359 GB, free: 2.328 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004359/0.4135, allocations: 180.5 kB / 1.359 GB, free: 2.152 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.4146, allocations: 0.7455 MB / 1.36 GB, free: 1.355 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.4152, allocations: 187.7 kB / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.4154, allocations: 130.5 kB / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.4155, allocations: 16.31 kB / 1.36 GB, free: 0.9922 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005417/0.416, allocations: 315.4 kB / 1.36 GB, free: 0.6641 MB / 1.045 GB Notification: Performance of pre-optimization done (n=48): time 2.996e-06/0.416, allocations: 4 kB / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of matching and sorting (n=48): time 0.001068/0.4171, allocations: 485.2 kB / 1.361 GB, free: 184 kB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.054e-05/0.4172, allocations: 122.7 kB / 1.361 GB, free: 36 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.4174, allocations: 178.9 kB / 1.361 GB, free: 15.85 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.4174, allocations: 37.7 kB / 1.361 GB, free: 15.81 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.897e-05/0.4175, allocations: 125.3 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.4177, allocations: 154.8 kB / 1.361 GB, free: 15.53 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.4178, allocations: 106.3 kB / 1.361 GB, free: 15.42 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.418, allocations: 338.8 kB / 1.362 GB, free: 15.08 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.4183, allocations: 149.2 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.4187, allocations: 248.8 kB / 1.362 GB, free: 14.66 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006913/0.4194, allocations: 398 kB / 1.362 GB, free: 14.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4194, allocations: 4 kB / 1.362 GB, free: 14.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009005/0.4203, allocations: 0.4893 MB / 1.363 GB, free: 13.73 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.4203, allocations: 8 kB / 1.363 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4203, allocations: 0 / 1.363 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.4203, allocations: 8 kB / 1.363 GB, free: 13.71 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.4207, allocations: 91.83 kB / 1.363 GB, free: 13.62 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.4208, allocations: 12 kB / 1.363 GB, free: 13.61 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.421, allocations: 55.73 kB / 1.363 GB, free: 13.56 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.4211, allocations: 20 kB / 1.363 GB, free: 13.54 MB / 1.061 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.0001968/0.4213, allocations: 167.4 kB / 1.363 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.4213, allocations: 35.75 kB / 1.363 GB, free: 13.33 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-05/0.4214, allocations: 37.95 kB / 1.363 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4214, allocations: 11.88 kB / 1.363 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4214, allocations: 0 / 1.363 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4214, allocations: 7.984 kB / 1.363 GB, free: 13.27 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003868/0.4218, allocations: 324.4 kB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4218, allocations: 3.938 kB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.4222, allocations: 75.89 kB / 1.364 GB, free: 12.83 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.4222, allocations: 4 kB / 1.364 GB, free: 12.83 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.4223, allocations: 15.98 kB / 1.364 GB, free: 12.81 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.4223, allocations: 4 kB / 1.364 GB, free: 12.81 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4223, allocations: 4 kB / 1.364 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.4234, allocations: 0.5821 MB / 1.364 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.4235, allocations: 27.73 kB / 1.364 GB, free: 12.17 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.4235, allocations: 16 kB / 1.364 GB, free: 12.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.4237, allocations: 31.95 kB / 1.364 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.4239, allocations: 60.09 kB / 1.364 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.4239, allocations: 16 kB / 1.364 GB, free: 12.05 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001026/0.424, allocations: 131 kB / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.4e-07/0.424, allocations: 0 / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003424/0.4243, allocations: 83.95 kB / 1.365 GB, free: 11.84 MB / 1.061 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.4258, allocations: 1.147 MB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007532/0.4265, allocations: 357.1 kB / 1.366 GB, free: 10.31 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4265, allocations: 0 / 1.366 GB, free: 10.31 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.4269, allocations: 179.7 kB / 1.366 GB, free: 10.14 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.4273, allocations: 55.22 kB / 1.366 GB, free: 10.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.4318, allocations: 3.206 MB / 1.37 GB, free: 6.715 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.4322, allocations: 0.7687 MB / 1.37 GB, free: 5.914 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001649/0.4324, allocations: 38.95 kB / 1.37 GB, free: 5.875 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.4326, allocations: 95.41 kB / 1.37 GB, free: 5.781 MB / 1.061 GB Notification: Performance of SimCode: time 6.92e-07/0.4326, allocations: 0 / 1.37 GB, free: 5.781 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.4737, allocations: 7.011 MB / 1.377 GB, free: 14.94 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.07, allocations: 9.781 kB / 1.377 GB, free: 14.93 MB / 1.076 GB " [Timeout remaining time 288] (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 --stepSize=0.32 --timeout=800 --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) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.12685622717254]