Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001728/0.001728, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002226/0.002226, allocations: 215.4 kB / 23.04 MB, free: 5.07 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.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.375/3.375, allocations: 0.49 GB / 0.7959 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="cs",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.002034/0.002034, allocations: 68.8 kB / 1.155 GB, free: 25.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3631, allocations: 176.1 MB / 1.327 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003527/0.3667, allocations: 2.007 MB / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.368, allocations: 0.7518 MB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.3682, allocations: 0 / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.182e-05/0.3682, allocations: 23.67 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.3683, allocations: 39.58 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005205/0.3689, allocations: 179.6 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.3692, allocations: 335.1 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.3694, allocations: 41.12 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.3697, allocations: 147.5 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002523/0.3699, allocations: 151.4 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.983e-05/0.37, allocations: 28 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.401e-05/0.3701, allocations: 36 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.412e-05/0.3701, allocations: 75.8 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.3703, allocations: 135.4 kB / 1.331 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003988/0.3707, allocations: 326.7 kB / 1.331 GB, free: 13.65 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3707, allocations: 3.938 kB / 1.331 GB, free: 13.65 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3707, allocations: 0 / 1.331 GB, free: 13.65 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.3707, allocations: 0 / 1.331 GB, free: 13.65 MB / 1.029 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.001284/0.372, allocations: 0.5559 MB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.372, allocations: 8.031 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.967e-05/0.372, allocations: 8.625 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.723e-05/0.3721, allocations: 62.72 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/0.3724, allocations: 56.72 kB / 1.332 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.3728, allocations: 190.2 kB / 1.332 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004095/0.3732, allocations: 0.4918 MB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-05/0.3733, allocations: 32.12 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.3738, allocations: 257.7 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3738, allocations: 7.953 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.3739, allocations: 11.98 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.3739, allocations: 11.94 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.3743, allocations: 167.8 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.3756, allocations: 0.7418 MB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.3761, allocations: 199.8 kB / 1.334 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.3764, allocations: 132 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.513e-05/0.3765, allocations: 20.28 kB / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005502/0.377, allocations: 303.3 kB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 1.943e-06/0.377, allocations: 4 kB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001112/0.3781, allocations: 486 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3782, allocations: 110.8 kB / 1.335 GB, free: 9.508 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.3784, allocations: 182.3 kB / 1.335 GB, free: 9.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.3785, allocations: 41.7 kB / 1.335 GB, free: 9.273 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3786, allocations: 125.3 kB / 1.335 GB, free: 9.148 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.3787, allocations: 150.8 kB / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.3789, allocations: 110.3 kB / 1.335 GB, free: 8.887 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3791, allocations: 338.8 kB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.3795, allocations: 149.2 kB / 1.336 GB, free: 8.398 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005175/0.38, allocations: 248.8 kB / 1.336 GB, free: 8.121 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000692/0.3807, allocations: 402 kB / 1.336 GB, free: 7.691 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3807, allocations: 0 / 1.336 GB, free: 7.691 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008927/0.3816, allocations: 0.4892 MB / 1.337 GB, free: 7.195 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3816, allocations: 6.188 kB / 1.337 GB, free: 7.191 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.3816, allocations: 4 kB / 1.337 GB, free: 7.188 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3816, allocations: 8.031 kB / 1.337 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.382, allocations: 111.7 kB / 1.337 GB, free: 7.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.382, allocations: 7.938 kB / 1.337 GB, free: 7.062 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.3823, allocations: 59.75 kB / 1.337 GB, free: 7.004 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.3823, allocations: 20 kB / 1.337 GB, free: 6.984 MB / 1.029 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.0001806/0.3825, allocations: 163.4 kB / 1.337 GB, free: 6.816 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.3825, allocations: 35.75 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.632e-05/0.3826, allocations: 29.97 kB / 1.337 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3826, allocations: 8 kB / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.3826, allocations: 0 / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3826, allocations: 3.984 kB / 1.337 GB, free: 6.73 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.383, allocations: 332.3 kB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.383, allocations: 4 kB / 1.337 GB, free: 6.359 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.3834, allocations: 75.89 kB / 1.338 GB, free: 6.285 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3834, allocations: 0 / 1.338 GB, free: 6.285 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.3835, allocations: 8 kB / 1.338 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.3835, allocations: 8 kB / 1.338 GB, free: 6.27 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3835, allocations: 3.984 kB / 1.338 GB, free: 6.266 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.3847, allocations: 0.5877 MB / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.3847, allocations: 31.75 kB / 1.338 GB, free: 5.625 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.3848, allocations: 12 kB / 1.338 GB, free: 5.613 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.385, allocations: 35.91 kB / 1.338 GB, free: 5.578 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.3851, allocations: 51.91 kB / 1.338 GB, free: 5.527 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.3852, allocations: 19.98 kB / 1.338 GB, free: 5.508 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001469/0.3853, allocations: 131.1 kB / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3853, allocations: 0 / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003452/0.3857, allocations: 79.98 kB / 1.338 GB, free: 5.301 MB / 1.029 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.001566/0.3872, allocations: 1.151 MB / 1.34 GB, free: 4.113 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000847/0.3881, allocations: 356.7 kB / 1.34 GB, free: 3.77 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3881, allocations: 0 / 1.34 GB, free: 3.77 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003977/0.3885, allocations: 179.8 kB / 1.34 GB, free: 3.594 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3888, allocations: 57.92 kB / 1.34 GB, free: 3.539 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.3938, allocations: 3.199 MB / 1.343 GB, free: 180 kB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.3943, allocations: 0.7726 MB / 1.344 GB, free: 15.38 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002097/0.3945, allocations: 43.14 kB / 1.344 GB, free: 15.33 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.3947, allocations: 99.39 kB / 1.344 GB, free: 15.23 MB / 1.045 GB Notification: Performance of SimCode: time 1.253e-06/0.3947, allocations: 0 / 1.344 GB, free: 15.23 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.4255, allocations: 7.025 MB / 1.351 GB, free: 8.387 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.38, allocations: 12.06 kB / 1.351 GB, free: 8.375 MB / 1.045 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --stepSize=0.32 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.516005260986276]