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.001816/0.001816, allocations: 119.3 kB / 17.17 MB, free: 5.977 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.002385/0.002385, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.583/1.583, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.011/3.011, allocations: 0.49 GB / 0.7923 GB, free: 1.344 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.002069/0.002069, allocations: 71.84 kB / 1.15 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 176.1 MB / 1.322 GB, free: 24.77 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001996/1.035, allocations: 1.11 MB / 1.323 GB, free: 24.02 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001173/1.036, allocations: 1.151 MB / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/1.036, allocations: 10.78 kB / 1.324 GB, free: 23.15 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.765e-05/1.036, allocations: 15.75 kB / 1.324 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/1.036, allocations: 43.7 kB / 1.324 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000412/1.037, allocations: 148.6 kB / 1.324 GB, free: 23.03 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002495/1.037, allocations: 333.4 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/1.037, allocations: 32.78 kB / 1.324 GB, free: 22.86 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/1.037, allocations: 146.8 kB / 1.324 GB, free: 22.79 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/1.037, allocations: 155.4 kB / 1.325 GB, free: 22.72 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/1.037, allocations: 30.31 kB / 1.325 GB, free: 22.72 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-05/1.038, allocations: 30.41 kB / 1.325 GB, free: 22.72 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.771e-05/1.038, allocations: 81.34 kB / 1.325 GB, free: 22.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.851e-05/1.038, allocations: 133 kB / 1.325 GB, free: 22.59 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002548/1.038, allocations: 321.3 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/1.038, allocations: 0 / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.633e-06/1.038, allocations: 2.562 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.241e-06/1.038, allocations: 0 / 1.325 GB, free: 22.47 MB / 1.061 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.001081/1.039, allocations: 0.6342 MB / 1.326 GB, free: 21.98 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/1.039, allocations: 18.3 kB / 1.326 GB, free: 21.98 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.486e-05/1.039, allocations: 6 kB / 1.326 GB, free: 21.98 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.608e-05/1.039, allocations: 58.06 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003147/1.039, allocations: 53.67 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/1.04, allocations: 202.9 kB / 1.326 GB, free: 21.69 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/1.04, allocations: 259.8 kB / 1.326 GB, free: 21.4 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-05/1.04, allocations: 35.31 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/1.04, allocations: 265.8 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/1.04, allocations: 6.922 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/1.04, allocations: 6.844 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/1.04, allocations: 5.797 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003847/1.041, allocations: 181.8 kB / 1.327 GB, free: 21.19 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009455/1.042, allocations: 0.7689 MB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004776/1.042, allocations: 195.2 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/1.042, allocations: 129.4 kB / 1.328 GB, free: 20.43 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/1.042, allocations: 10.92 kB / 1.328 GB, free: 20.42 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005737/1.043, allocations: 318 kB / 1.328 GB, free: 20.26 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 1.784e-06/1.043, allocations: 3.938 kB / 1.328 GB, free: 20.26 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001103/1.044, allocations: 479.2 kB / 1.329 GB, free: 20.09 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/1.044, allocations: 119.3 kB / 1.329 GB, free: 19.96 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/1.044, allocations: 184 kB / 1.329 GB, free: 19.82 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/1.044, allocations: 39.08 kB / 1.329 GB, free: 19.78 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/1.044, allocations: 117.4 kB / 1.329 GB, free: 19.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.869e-05/1.044, allocations: 159.5 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/1.045, allocations: 104.3 kB / 1.329 GB, free: 19.5 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.621e-05/1.045, allocations: 343.2 kB / 1.33 GB, free: 19.17 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/1.045, allocations: 150.4 kB / 1.33 GB, free: 19.12 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/1.045, allocations: 246.8 kB / 1.33 GB, free: 18.96 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/1.046, allocations: 402.2 kB / 1.33 GB, free: 18.71 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/1.046, allocations: 1.219 kB / 1.33 GB, free: 18.71 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008527/1.047, allocations: 498.3 kB / 1.331 GB, free: 18.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.047, allocations: 5.906 kB / 1.331 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.047, allocations: 4.109 kB / 1.331 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/1.047, allocations: 5.688 kB / 1.331 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/1.047, allocations: 94.98 kB / 1.331 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/1.047, allocations: 9.109 kB / 1.331 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/1.048, allocations: 58.86 kB / 1.331 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/1.048, allocations: 28.41 kB / 1.331 GB, free: 18.45 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.0001348/1.048, allocations: 153.3 kB / 1.331 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.191e-05/1.048, allocations: 33.89 kB / 1.331 GB, free: 18.29 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.027e-05/1.048, allocations: 32.84 kB / 1.331 GB, free: 18.26 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/1.048, allocations: 8.578 kB / 1.331 GB, free: 18.25 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/1.048, allocations: 1.156 kB / 1.331 GB, free: 18.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.048, allocations: 3.922 kB / 1.331 GB, free: 18.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/1.048, allocations: 364.5 kB / 1.332 GB, free: 17.98 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.048, allocations: 4 kB / 1.332 GB, free: 17.97 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/1.049, allocations: 79.92 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/1.049, allocations: 1.281 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.193e-05/1.049, allocations: 11.67 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/1.049, allocations: 3.094 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.049, allocations: 0.6094 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/1.05, allocations: 0.5825 MB / 1.332 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.689e-05/1.05, allocations: 105.4 kB / 1.332 GB, free: 17.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/1.05, allocations: 17.66 kB / 1.332 GB, free: 17.56 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/1.05, allocations: 29.06 kB / 1.333 GB, free: 17.56 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/1.05, allocations: 63.89 kB / 1.333 GB, free: 17.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/1.05, allocations: 13.59 kB / 1.333 GB, free: 17.54 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.881e-05/1.05, allocations: 127.2 kB / 1.333 GB, free: 17.45 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/1.05, allocations: 0 / 1.333 GB, free: 17.45 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003438/1.051, allocations: 83.53 kB / 1.333 GB, free: 17.43 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.001274/1.052, allocations: 1.144 MB / 1.334 GB, free: 16.62 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008471/1.053, allocations: 364 kB / 1.334 GB, free: 16.51 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.053, allocations: 0 / 1.334 GB, free: 16.51 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004704/1.053, allocations: 190.4 kB / 1.334 GB, free: 16.45 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/1.054, allocations: 41.11 kB / 1.334 GB, free: 16.43 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/1.057, allocations: 3.169 MB / 1.338 GB, free: 14.33 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/1.058, allocations: 0.7634 MB / 1.338 GB, free: 13.63 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000156/1.058, allocations: 38.56 kB / 1.338 GB, free: 13.62 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/1.058, allocations: 91.81 kB / 1.338 GB, free: 13.56 MB / 1.061 GB Notification: Performance of SimCode: time 5.11e-07/1.058, allocations: 0 / 1.338 GB, free: 13.56 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/1.085, allocations: 6.613 MB / 1.345 GB, free: 12.85 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.141/10.23, allocations: 7.375 kB / 1.345 GB, free: 12.84 MB / 1.061 GB " [Timeout remaining time 290] (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: 17.035493144008797]