Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.001901/0.001901, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002165/0.002165, allocations: 213.7 kB / 22.25 MB, free: 5.262 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.781 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.275/3.275, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 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,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",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.003028/0.003028, allocations: 70.22 kB / 1.153 GB, free: 25.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.365, allocations: 176.1 MB / 1.325 GB, free: 2.184 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002342/0.3673, allocations: 1.046 MB / 1.326 GB, free: 1.141 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.3691, allocations: 1.131 MB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.3692, allocations: 4 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.602e-05/0.3693, allocations: 19.73 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3694, allocations: 51.38 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.37, allocations: 147.7 kB / 1.327 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004151/0.3704, allocations: 315.2 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.3706, allocations: 40.56 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.3709, allocations: 147.5 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.3711, allocations: 131.5 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.682e-05/0.3712, allocations: 28 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.056e-05/0.3713, allocations: 36 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.3714, allocations: 79.73 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.3715, allocations: 115.5 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.3719, allocations: 323 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3719, allocations: 0 / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3719, allocations: 0 / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.3719, allocations: 0 / 1.329 GB, free: 14.58 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.001368/0.3733, allocations: 0.5581 MB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3733, allocations: 8.031 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.327e-05/0.3734, allocations: 58.73 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00036/0.3738, allocations: 60.72 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.3739, allocations: 151 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003969/0.3743, allocations: 499.6 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.3744, allocations: 32.36 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.375, allocations: 266 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.375, allocations: 3.953 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.375, allocations: 8 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.375, allocations: 4 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.3755, allocations: 187.8 kB / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.3769, allocations: 0.6794 MB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.3775, allocations: 197.4 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.3777, allocations: 126.5 kB / 1.331 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.3778, allocations: 15.88 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006042/0.3784, allocations: 315.7 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.225e-06/0.3784, allocations: 3.938 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001101/0.3795, allocations: 480.5 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/0.3796, allocations: 114.8 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3798, allocations: 187.5 kB / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.3798, allocations: 41.7 kB / 1.332 GB, free: 10.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.3799, allocations: 121.4 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.3801, allocations: 150.7 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.3803, allocations: 110.3 kB / 1.333 GB, free: 9.906 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3804, allocations: 342.8 kB / 1.333 GB, free: 9.562 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.3807, allocations: 145.2 kB / 1.333 GB, free: 9.422 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004071/0.3812, allocations: 252.8 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006949/0.3818, allocations: 402 kB / 1.334 GB, free: 8.707 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3819, allocations: 0 / 1.334 GB, free: 8.707 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009136/0.3828, allocations: 489.1 kB / 1.334 GB, free: 8.223 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.3828, allocations: 11.94 kB / 1.334 GB, free: 8.211 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3828, allocations: 0 / 1.334 GB, free: 8.211 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.3828, allocations: 11.98 kB / 1.334 GB, free: 8.199 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.3832, allocations: 95.77 kB / 1.334 GB, free: 8.105 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.3832, allocations: 12.64 kB / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.3835, allocations: 63.7 kB / 1.335 GB, free: 8.031 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.3836, allocations: 20 kB / 1.335 GB, free: 8.012 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.0002398/0.3838, allocations: 160 kB / 1.335 GB, free: 7.848 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.279e-05/0.3839, allocations: 31.8 kB / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.083e-05/0.3839, allocations: 29.97 kB / 1.335 GB, free: 7.785 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3839, allocations: 4 kB / 1.335 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.384, allocations: 3.984 kB / 1.335 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.384, allocations: 8 kB / 1.335 GB, free: 7.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003645/0.3843, allocations: 280.5 kB / 1.335 GB, free: 7.453 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3843, allocations: 0 / 1.335 GB, free: 7.453 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.3847, allocations: 67.91 kB / 1.335 GB, free: 7.387 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.3847, allocations: 7.922 kB / 1.335 GB, free: 7.379 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.3848, allocations: 16 kB / 1.335 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3848, allocations: 0 / 1.335 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3848, allocations: 4 kB / 1.335 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.3859, allocations: 0.59 MB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.386, allocations: 31.73 kB / 1.336 GB, free: 6.711 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/0.386, allocations: 11.98 kB / 1.336 GB, free: 6.699 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.3863, allocations: 27.97 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3864, allocations: 59.84 kB / 1.336 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.3864, allocations: 19.98 kB / 1.336 GB, free: 6.594 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001009/0.3865, allocations: 121.4 kB / 1.336 GB, free: 6.477 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3865, allocations: 0 / 1.336 GB, free: 6.477 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003492/0.3869, allocations: 91.89 kB / 1.336 GB, free: 6.387 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.001525/0.3884, allocations: 1.147 MB / 1.337 GB, free: 5.215 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008202/0.3892, allocations: 363.2 kB / 1.338 GB, free: 4.859 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3892, allocations: 0 / 1.338 GB, free: 4.859 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.3896, allocations: 181.5 kB / 1.338 GB, free: 4.684 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.39, allocations: 40.25 kB / 1.338 GB, free: 4.645 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004856/0.3948, allocations: 3.178 MB / 1.341 GB, free: 1.305 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.395, allocations: 152.2 kB / 1.341 GB, free: 1.141 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001776/0.3952, allocations: 42.95 kB / 1.341 GB, free: 1.094 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.3954, allocations: 91.41 kB / 1.341 GB, free: 1.004 MB / 1.029 GB Notification: Performance of SimCode: time 1.172e-06/0.3954, allocations: 0 / 1.341 GB, free: 1.004 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.436, allocations: 7.33 MB / 1.348 GB, free: 9.859 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.25, allocations: 4.734 kB / 1.348 GB, free: 9.855 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.140073550865054]