Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001375/0.001375, 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.001889/0.001889, allocations: 210.5 kB / 22.24 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.502/1.502, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.44/3.44, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_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.002453/0.002453, allocations: 66.28 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3645, allocations: 181.9 MB / 1.363 GB, free: 14.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002414/0.3669, allocations: 1.029 MB / 1.364 GB, free: 12.99 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.3685, allocations: 1.131 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.315e-05/0.3686, allocations: 0 / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.446e-05/0.3686, allocations: 19.69 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.3687, allocations: 43.58 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.3692, allocations: 155.7 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.3695, allocations: 331.1 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.3697, allocations: 32.58 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.37, allocations: 135.6 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.3702, allocations: 139.3 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.3703, allocations: 32 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.314e-05/0.3704, allocations: 32 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.504e-05/0.3705, allocations: 75.8 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.3706, allocations: 119.5 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.371, allocations: 319.1 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.371, allocations: 0 / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.854e-06/0.371, allocations: 0 / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.281e-06/0.371, allocations: 7.938 kB / 1.367 GB, free: 10.43 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.001354/0.3724, allocations: 0.556 MB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3724, allocations: 8.031 kB / 1.367 GB, free: 9.828 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.317e-05/0.3725, allocations: 62.72 kB / 1.368 GB, free: 9.758 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003175/0.3728, allocations: 56.77 kB / 1.368 GB, free: 9.703 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.3729, allocations: 143 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003637/0.3733, allocations: 0.4957 MB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.721e-05/0.3734, allocations: 28.38 kB / 1.368 GB, free: 8.898 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.3739, allocations: 273.9 kB / 1.369 GB, free: 8.621 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.3739, allocations: 4 kB / 1.369 GB, free: 8.617 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.3739, allocations: 12 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.374, allocations: 4 kB / 1.369 GB, free: 8.602 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.3744, allocations: 167.9 kB / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.3755, allocations: 0.6911 MB / 1.369 GB, free: 7.695 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.376, allocations: 211.6 kB / 1.37 GB, free: 7.461 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.3763, allocations: 122.5 kB / 1.37 GB, free: 7.332 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.3763, allocations: 11.98 kB / 1.37 GB, free: 7.32 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005932/0.3769, allocations: 308.7 kB / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 2.454e-06/0.3769, allocations: 0 / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001108/0.378, allocations: 488.7 kB / 1.37 GB, free: 6.516 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.3781, allocations: 114.8 kB / 1.371 GB, free: 6.379 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.3783, allocations: 175.5 kB / 1.371 GB, free: 6.195 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.3783, allocations: 41.7 kB / 1.371 GB, free: 6.148 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.913e-05/0.3784, allocations: 125.3 kB / 1.371 GB, free: 6.023 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.3786, allocations: 150.8 kB / 1.371 GB, free: 5.875 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.3788, allocations: 110.3 kB / 1.371 GB, free: 5.758 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002024/0.379, allocations: 338.8 kB / 1.371 GB, free: 5.418 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.3793, allocations: 153.2 kB / 1.372 GB, free: 5.27 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.3797, allocations: 256.8 kB / 1.372 GB, free: 4.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000716/0.3804, allocations: 394 kB / 1.372 GB, free: 4.559 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3804, allocations: 7.938 kB / 1.372 GB, free: 4.551 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009686/0.3814, allocations: 489 kB / 1.373 GB, free: 4.066 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.3814, allocations: 7.938 kB / 1.373 GB, free: 4.059 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3814, allocations: 8 kB / 1.373 GB, free: 4.051 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.3815, allocations: 8 kB / 1.373 GB, free: 4.043 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004212/0.3819, allocations: 95.89 kB / 1.373 GB, free: 3.949 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.3819, allocations: 8 kB / 1.373 GB, free: 3.941 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.3822, allocations: 59.73 kB / 1.373 GB, free: 3.883 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/0.3822, allocations: 20 kB / 1.373 GB, free: 3.863 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.0002413/0.3825, allocations: 159.5 kB / 1.373 GB, free: 3.695 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.3825, allocations: 31.75 kB / 1.373 GB, free: 3.664 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.228e-05/0.3826, allocations: 33.95 kB / 1.373 GB, free: 3.629 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3826, allocations: 8 kB / 1.373 GB, free: 3.621 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.3826, allocations: 0 / 1.373 GB, free: 3.621 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3826, allocations: 3.938 kB / 1.373 GB, free: 3.617 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004123/0.3831, allocations: 276.5 kB / 1.373 GB, free: 3.305 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3831, allocations: 4 kB / 1.373 GB, free: 3.301 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.3835, allocations: 67.89 kB / 1.373 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.3835, allocations: 11.94 kB / 1.373 GB, free: 3.223 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.3835, allocations: 12 kB / 1.373 GB, free: 3.211 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.3835, allocations: 7.984 kB / 1.373 GB, free: 3.203 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3835, allocations: 3.938 kB / 1.373 GB, free: 3.199 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.3847, allocations: 0.5862 MB / 1.374 GB, free: 2.594 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.3848, allocations: 35.67 kB / 1.374 GB, free: 2.559 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.3848, allocations: 12 kB / 1.374 GB, free: 2.547 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.385, allocations: 35.95 kB / 1.374 GB, free: 2.512 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.3852, allocations: 56.02 kB / 1.374 GB, free: 2.457 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/0.3853, allocations: 19.92 kB / 1.374 GB, free: 2.438 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001107/0.3854, allocations: 125.2 kB / 1.374 GB, free: 2.316 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3854, allocations: 0 / 1.374 GB, free: 2.316 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003831/0.3858, allocations: 83.98 kB / 1.374 GB, free: 2.234 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.001494/0.3872, allocations: 1.15 MB / 1.376 GB, free: 1.051 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008201/0.3881, allocations: 348.8 kB / 1.376 GB, free: 0.7148 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3881, allocations: 4 kB / 1.376 GB, free: 0.7109 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.3885, allocations: 192.5 kB / 1.376 GB, free: 0.5234 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.3888, allocations: 52.23 kB / 1.376 GB, free: 484 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004782/0.3936, allocations: 3.155 MB / 1.379 GB, free: 13.16 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.3938, allocations: 160.1 kB / 1.379 GB, free: 12.99 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001793/0.394, allocations: 38.95 kB / 1.379 GB, free: 12.95 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.3942, allocations: 91.41 kB / 1.379 GB, free: 12.86 MB / 1.076 GB Notification: Performance of SimCode: time 9.22e-07/0.3942, allocations: 3.938 kB / 1.379 GB, free: 12.85 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.4323, allocations: 7.328 MB / 1.387 GB, free: 5.703 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.26, allocations: 2.891 kB / 1.387 GB, free: 5.703 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.33576981537044]