Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006981/0.006981, allocations: 100.3 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 192.9 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.881/2.881, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 72.11 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3007, allocations: 159.1 MB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002336/0.3031, allocations: 1.103 MB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3046, allocations: 1.111 MB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.079e-05/0.3047, allocations: 4 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.077e-05/0.3047, allocations: 19.73 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.3048, allocations: 47.52 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.3053, allocations: 143.8 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.3056, allocations: 319.2 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.3058, allocations: 60.3 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.306, allocations: 131.6 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.3062, allocations: 155.3 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.3062, allocations: 28 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.987e-05/0.3063, allocations: 28 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.557e-05/0.3064, allocations: 75.78 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.3066, allocations: 135.4 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.3069, allocations: 318.7 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3069, allocations: 0 / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3069, allocations: 0 / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.3069, allocations: 0 / 1.224 GB, free: 10.57 MB / 0.9825 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.001247/0.3082, allocations: 0.6312 MB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3082, allocations: 8.031 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.135e-05/0.3083, allocations: 62.7 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.934e-05/0.3084, allocations: 36.73 kB / 1.225 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.3086, allocations: 204.8 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002322/0.3088, allocations: 268.3 kB / 1.225 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.3089, allocations: 28.36 kB / 1.225 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005047/0.3094, allocations: 274 kB / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.3094, allocations: 0 / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.3094, allocations: 8 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.3094, allocations: 4 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004412/0.3099, allocations: 179.8 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.311, allocations: 0.7738 MB / 1.226 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/0.3115, allocations: 203.7 kB / 1.226 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.3117, allocations: 130.5 kB / 1.227 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.652e-05/0.3118, allocations: 15.98 kB / 1.227 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005578/0.3124, allocations: 307.7 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 1.984e-06/0.3124, allocations: 4 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.001058/0.3134, allocations: 486.8 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.3135, allocations: 122.7 kB / 1.227 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.3137, allocations: 175.4 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.3138, allocations: 41.7 kB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/0.3139, allocations: 121.3 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.314, allocations: 154.7 kB / 1.228 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3142, allocations: 102.3 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3143, allocations: 346.7 kB / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.3146, allocations: 153.2 kB / 1.228 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.315, allocations: 244.8 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006696/0.3157, allocations: 402 kB / 1.229 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3157, allocations: 4 kB / 1.229 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008752/0.3166, allocations: 493.1 kB / 1.23 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3166, allocations: 11.94 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3166, allocations: 4 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3167, allocations: 8 kB / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003889/0.3171, allocations: 91.83 kB / 1.23 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.3171, allocations: 8 kB / 1.23 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.3174, allocations: 55.75 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/0.3174, allocations: 27.98 kB / 1.23 GB, free: 4.051 MB / 0.9825 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.0001709/0.3176, allocations: 159.5 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.3177, allocations: 31.75 kB / 1.23 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.3177, allocations: 33.86 kB / 1.23 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3177, allocations: 8 kB / 1.23 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3178, allocations: 0 / 1.23 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3178, allocations: 0 / 1.23 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.3182, allocations: 357.2 kB / 1.23 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3182, allocations: 3.938 kB / 1.23 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/0.3186, allocations: 75.89 kB / 1.23 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3186, allocations: 11.88 kB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.3187, allocations: 15.98 kB / 1.23 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.3187, allocations: 4 kB / 1.23 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3187, allocations: 0 / 1.23 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.3198, allocations: 0.5784 MB / 1.231 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-05/0.3199, allocations: 108.8 kB / 1.231 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.3199, allocations: 12.09 kB / 1.231 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.3202, allocations: 35.89 kB / 1.231 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3203, allocations: 59.94 kB / 1.231 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.3204, allocations: 15.98 kB / 1.231 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001044/0.3205, allocations: 129.2 kB / 1.231 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3205, allocations: 0 / 1.231 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003267/0.3208, allocations: 84.12 kB / 1.231 GB, free: 2.246 MB / 0.9825 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.001476/0.3223, allocations: 1.147 MB / 1.233 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007642/0.3231, allocations: 384.7 kB / 1.233 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3231, allocations: 0 / 1.233 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003955/0.3235, allocations: 191.7 kB / 1.233 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.3238, allocations: 44.23 kB / 1.233 GB, free: 476 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.3281, allocations: 3.163 MB / 1.236 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.3285, allocations: 0.7686 MB / 1.237 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000162/0.3287, allocations: 35.16 kB / 1.237 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.3289, allocations: 95.39 kB / 1.237 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of SimCode: time 3.51e-07/0.3289, allocations: 0 / 1.237 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03789/0.3668, allocations: 6.535 MB / 1.243 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/8.863, allocations: 3.953 kB / 1.243 GB, free: 5.809 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches