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.001317/0.001317, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001557/0.001557, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.407/3.407, allocations: 0.49 GB / 0.7959 GB, free: 35.42 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.002098/0.002098, allocations: 69.14 kB / 1.155 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3438, allocations: 176.1 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00249/0.3462, allocations: 1.036 MB / 1.328 GB, free: 436 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001684/0.3479, allocations: 1.128 MB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.3481, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.887e-05/0.3481, allocations: 19.73 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.3483, allocations: 51.45 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.3488, allocations: 151.7 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.3492, allocations: 327.1 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.3493, allocations: 40.56 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.3496, allocations: 143.5 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.3498, allocations: 147.4 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.3499, allocations: 28 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.327e-05/0.35, allocations: 35.98 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.684e-05/0.3501, allocations: 83.73 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.3502, allocations: 115.5 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.3506, allocations: 315 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3506, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3506, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.725e-05/0.3506, allocations: 4 kB / 1.33 GB, free: 13.85 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.00137/0.352, allocations: 0.561 MB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.352, allocations: 12.03 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.821e-05/0.3521, allocations: 4.625 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.896e-05/0.3521, allocations: 54.73 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000371/0.3525, allocations: 64.7 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.3527, allocations: 147 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003665/0.353, allocations: 499.6 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-05/0.3531, allocations: 36.36 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.3537, allocations: 261.8 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.3537, allocations: 3.953 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.3537, allocations: 12 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.3537, allocations: 4 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.3542, allocations: 183.8 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3554, allocations: 0.6872 MB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005559/0.356, allocations: 191.7 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.3562, allocations: 130.5 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.3563, allocations: 8 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006579/0.3569, allocations: 323.8 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 4.258e-06/0.3569, allocations: 0 / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001168/0.3581, allocations: 480.2 kB / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.3582, allocations: 118.8 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3584, allocations: 183.5 kB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.3585, allocations: 45.7 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.3586, allocations: 113.3 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.3587, allocations: 166.7 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3589, allocations: 102.3 kB / 1.334 GB, free: 9.156 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3591, allocations: 342.8 kB / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.3594, allocations: 149.2 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.3598, allocations: 252.7 kB / 1.335 GB, free: 8.383 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007271/0.3606, allocations: 394.1 kB / 1.335 GB, free: 7.961 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.3606, allocations: 4 kB / 1.335 GB, free: 7.957 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001019/0.3616, allocations: 485.5 kB / 1.336 GB, free: 7.477 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3616, allocations: 8 kB / 1.336 GB, free: 7.469 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.3616, allocations: 4.141 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.3617, allocations: 8 kB / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004426/0.3621, allocations: 95.83 kB / 1.336 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.175e-05/0.3621, allocations: 15.92 kB / 1.336 GB, free: 7.348 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.3625, allocations: 59.7 kB / 1.336 GB, free: 7.289 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.3625, allocations: 23.94 kB / 1.336 GB, free: 7.266 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.0002413/0.3628, allocations: 164.1 kB / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.3628, allocations: 31.8 kB / 1.336 GB, free: 7.066 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.727e-05/0.3629, allocations: 29.97 kB / 1.336 GB, free: 7.035 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3629, allocations: 7.984 kB / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.363, allocations: 4 kB / 1.336 GB, free: 7.023 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.363, allocations: 4 kB / 1.336 GB, free: 7.02 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004574/0.3634, allocations: 280.5 kB / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3634, allocations: 0 / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.3639, allocations: 79.83 kB / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.3639, allocations: 0 / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.364, allocations: 12 kB / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.364, allocations: 0 / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.364, allocations: 4.062 kB / 1.337 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.3652, allocations: 0.59 MB / 1.337 GB, free: 5.996 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.3652, allocations: 27.73 kB / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.3653, allocations: 15.98 kB / 1.337 GB, free: 5.953 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.3655, allocations: 27.97 kB / 1.337 GB, free: 5.926 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.3656, allocations: 59.91 kB / 1.337 GB, free: 5.867 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.3657, allocations: 19.92 kB / 1.337 GB, free: 5.848 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001058/0.3658, allocations: 125.2 kB / 1.338 GB, free: 5.727 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3658, allocations: 4 kB / 1.338 GB, free: 5.723 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003544/0.3661, allocations: 79.95 kB / 1.338 GB, free: 5.645 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.001545/0.3677, allocations: 1.15 MB / 1.339 GB, free: 4.465 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008223/0.3685, allocations: 362.8 kB / 1.339 GB, free: 4.109 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3685, allocations: 0 / 1.339 GB, free: 4.109 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003975/0.3689, allocations: 179.5 kB / 1.339 GB, free: 3.938 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.3693, allocations: 41.84 kB / 1.339 GB, free: 3.898 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004764/0.374, allocations: 3.179 MB / 1.342 GB, free: 0.5625 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.3742, allocations: 160.1 kB / 1.343 GB, free: 400 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001746/0.3743, allocations: 38.95 kB / 1.343 GB, free: 356 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.3745, allocations: 91.41 kB / 1.343 GB, free: 264 kB / 1.029 GB Notification: Performance of SimCode: time 8.82e-07/0.3745, allocations: 0 / 1.343 GB, free: 264 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.4071, allocations: 6.973 MB / 1.35 GB, free: 9.504 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.33, allocations: 11.98 kB / 1.35 GB, free: 9.492 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.512504869955592]