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.001388/0.001388, 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.001448/0.001448, allocations: 218.4 kB / 23.04 MB, free: 5.074 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.506/1.506, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.313/3.313, 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,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",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.001999/0.001999, allocations: 72.78 kB / 1.155 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3766, allocations: 176.1 MB / 1.327 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002475/0.379, allocations: 1.114 MB / 1.328 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.3807, allocations: 1.155 MB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.763e-05/0.3808, allocations: 0 / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.702e-05/0.3808, allocations: 23.67 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.381, allocations: 39.53 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.3814, allocations: 143.8 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000354/0.3818, allocations: 335 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.3819, allocations: 44.58 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.3822, allocations: 131.7 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.3824, allocations: 155.3 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.3824, allocations: 28 kB / 1.33 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.996e-05/0.3825, allocations: 35.98 kB / 1.33 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.364e-05/0.3826, allocations: 79.78 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.3827, allocations: 131.4 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.3831, allocations: 323 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3831, allocations: 0 / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3831, allocations: 0 / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.3831, allocations: 0 / 1.33 GB, free: 14.2 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.001278/0.3844, allocations: 0.5598 MB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.3844, allocations: 8.031 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.608e-05/0.3844, allocations: 4.625 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.646e-05/0.3845, allocations: 62.67 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003258/0.3848, allocations: 60.72 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.385, allocations: 147 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/0.3853, allocations: 495.6 kB / 1.332 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.3854, allocations: 32.36 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005193/0.3859, allocations: 269.8 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.3859, allocations: 11.94 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.386, allocations: 8 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.386, allocations: 7.938 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000442/0.3864, allocations: 179.8 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.3875, allocations: 0.7456 MB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.3881, allocations: 195.7 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.3883, allocations: 126.5 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.3884, allocations: 15.97 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005946/0.389, allocations: 311.6 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.245e-06/0.389, allocations: 0 / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001102/0.3901, allocations: 485.5 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.3902, allocations: 110.8 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3903, allocations: 183.5 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.3904, allocations: 41.69 kB / 1.334 GB, free: 9.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/0.3905, allocations: 121.3 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3906, allocations: 158.7 kB / 1.335 GB, free: 9.562 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.3908, allocations: 106.3 kB / 1.335 GB, free: 9.449 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.391, allocations: 342.8 kB / 1.335 GB, free: 9.105 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.3913, allocations: 145.2 kB / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/0.3917, allocations: 256.7 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000679/0.3924, allocations: 390.1 kB / 1.336 GB, free: 8.258 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3924, allocations: 0 / 1.336 GB, free: 8.258 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009262/0.3933, allocations: 0.4892 MB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.3933, allocations: 10.03 kB / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3933, allocations: 4 kB / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.3934, allocations: 4 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.3938, allocations: 99.77 kB / 1.336 GB, free: 7.648 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.3938, allocations: 7.984 kB / 1.336 GB, free: 7.641 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.3941, allocations: 59.7 kB / 1.336 GB, free: 7.582 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.3941, allocations: 24 kB / 1.336 GB, free: 7.559 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.0001866/0.3943, allocations: 157.8 kB / 1.337 GB, free: 7.398 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.3943, allocations: 31.88 kB / 1.337 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.82e-05/0.3944, allocations: 34.02 kB / 1.337 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.3944, allocations: 8 kB / 1.337 GB, free: 7.324 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.3944, allocations: 4 kB / 1.337 GB, free: 7.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.3945, allocations: 3.984 kB / 1.337 GB, free: 7.316 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.3948, allocations: 332.3 kB / 1.337 GB, free: 6.949 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3948, allocations: 0 / 1.337 GB, free: 6.949 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.3953, allocations: 79.83 kB / 1.337 GB, free: 6.871 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.3953, allocations: 4 kB / 1.337 GB, free: 6.867 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.3953, allocations: 11.98 kB / 1.337 GB, free: 6.855 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.3953, allocations: 0 / 1.337 GB, free: 6.855 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3953, allocations: 4 kB / 1.337 GB, free: 6.852 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.3964, allocations: 0.5861 MB / 1.338 GB, free: 6.242 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-05/0.3965, allocations: 27.73 kB / 1.338 GB, free: 6.215 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.196e-05/0.3965, allocations: 12 kB / 1.338 GB, free: 6.203 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.3968, allocations: 31.95 kB / 1.338 GB, free: 6.172 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.3969, allocations: 59.91 kB / 1.338 GB, free: 6.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.3969, allocations: 12 kB / 1.338 GB, free: 6.102 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001373/0.3971, allocations: 129.2 kB / 1.338 GB, free: 5.977 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3971, allocations: 4 kB / 1.338 GB, free: 5.973 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003484/0.3974, allocations: 75.95 kB / 1.338 GB, free: 5.898 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.001466/0.3989, allocations: 1.155 MB / 1.339 GB, free: 4.715 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008349/0.3997, allocations: 360.7 kB / 1.339 GB, free: 4.363 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3997, allocations: 0 / 1.339 GB, free: 4.363 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003898/0.4001, allocations: 182 kB / 1.34 GB, free: 4.188 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.4005, allocations: 35 kB / 1.34 GB, free: 4.156 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.405, allocations: 3.189 MB / 1.343 GB, free: 0.8086 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.4054, allocations: 0.7609 MB / 1.343 GB, free: 24 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001774/0.4056, allocations: 38.97 kB / 1.343 GB, free: 15.98 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.4058, allocations: 95.39 kB / 1.344 GB, free: 15.89 MB / 1.045 GB Notification: Performance of SimCode: time 1.182e-06/0.4058, allocations: 4 kB / 1.344 GB, free: 15.88 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.4355, allocations: 6.937 MB / 1.35 GB, free: 9.121 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.23, allocations: 14.03 kB / 1.35 GB, free: 9.113 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.231574014993384]