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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007898/0.007898, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001878/0.001878, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.734/2.734, allocations: 472.7 MB / 0.7453 GB, free: 4.527 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 76.09 kB / 1.069 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3042, allocations: 159.9 MB / 1.225 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002282/0.3065, allocations: 1.117 MB / 1.226 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.3078, allocations: 1.104 MB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.805e-05/0.308, allocations: 0 / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.258e-05/0.308, allocations: 19.69 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.3081, allocations: 39.58 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.3086, allocations: 155.7 kB / 1.228 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003068/0.3089, allocations: 327.1 kB / 1.228 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.3091, allocations: 48.33 kB / 1.228 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.3092, allocations: 135.6 kB / 1.228 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.3094, allocations: 151.4 kB / 1.228 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.3095, allocations: 32 kB / 1.228 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.159e-05/0.3096, allocations: 31.94 kB / 1.228 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.878e-05/0.3096, allocations: 79.77 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3098, allocations: 131.4 kB / 1.229 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.3101, allocations: 310.8 kB / 1.229 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3101, allocations: 0 / 1.229 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.116e-06/0.3101, allocations: 3.984 kB / 1.229 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.3101, allocations: 0 / 1.229 GB, free: 5.898 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.001197/0.3113, allocations: 0.6312 MB / 1.229 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3114, allocations: 8.031 kB / 1.229 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.546e-05/0.3115, allocations: 62.67 kB / 1.23 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.3115, allocations: 28.8 kB / 1.23 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.3117, allocations: 216.7 kB / 1.23 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.3119, allocations: 268.3 kB / 1.23 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.312, allocations: 24.38 kB / 1.23 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.3125, allocations: 266.1 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.3125, allocations: 4 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.3125, allocations: 11.98 kB / 1.23 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.3125, allocations: 4 kB / 1.23 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.313, allocations: 175.8 kB / 1.23 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.314, allocations: 0.7776 MB / 1.231 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.3145, allocations: 201.8 kB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.3148, allocations: 134.5 kB / 1.232 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.3148, allocations: 15.92 kB / 1.232 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005214/0.3154, allocations: 303.7 kB / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.3154, allocations: 0 / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.00101/0.3164, allocations: 490.3 kB / 1.232 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.3165, allocations: 118.8 kB / 1.232 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3166, allocations: 175.5 kB / 1.233 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.3167, allocations: 41.7 kB / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.3168, allocations: 117.3 kB / 1.233 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3169, allocations: 158.7 kB / 1.233 GB, free: 1.395 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.3171, allocations: 110.3 kB / 1.233 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3172, allocations: 346.7 kB / 1.233 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.3175, allocations: 145.2 kB / 1.233 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000392/0.3179, allocations: 252.7 kB / 1.234 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000634/0.3186, allocations: 402 kB / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3186, allocations: 0 / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009034/0.3195, allocations: 493.2 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3195, allocations: 7.938 kB / 1.235 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.3195, allocations: 4 kB / 1.235 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.3196, allocations: 8 kB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.32, allocations: 99.81 kB / 1.235 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.32, allocations: 7.938 kB / 1.235 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.3203, allocations: 59.75 kB / 1.235 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.3203, allocations: 20 kB / 1.235 GB, free: 15.39 MB / 0.9981 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.0001693/0.3205, allocations: 160 kB / 1.235 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.3205, allocations: 35.75 kB / 1.235 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.919e-05/0.3206, allocations: 29.88 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3206, allocations: 8 kB / 1.235 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3206, allocations: 0 / 1.235 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3206, allocations: 3.984 kB / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.321, allocations: 353.2 kB / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.321, allocations: 0 / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004026/0.3214, allocations: 79.83 kB / 1.235 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.3215, allocations: 7.938 kB / 1.235 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.3215, allocations: 12 kB / 1.235 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.3215, allocations: 8 kB / 1.235 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3215, allocations: 0 / 1.235 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.3226, allocations: 0.5747 MB / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.818e-05/0.3227, allocations: 116.8 kB / 1.236 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.3227, allocations: 12 kB / 1.236 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.323, allocations: 27.97 kB / 1.236 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3231, allocations: 59.92 kB / 1.236 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.3231, allocations: 16.06 kB / 1.236 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.537e-05/0.3232, allocations: 133.1 kB / 1.236 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3233, allocations: 0 / 1.236 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003249/0.3236, allocations: 79.94 kB / 1.236 GB, free: 13.59 MB / 0.9981 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.001388/0.325, allocations: 1.147 MB / 1.238 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007311/0.3257, allocations: 392.8 kB / 1.238 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3257, allocations: 0 / 1.238 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003893/0.3261, allocations: 188.7 kB / 1.238 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.3265, allocations: 39.92 kB / 1.238 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3305, allocations: 3.173 MB / 1.241 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3309, allocations: 0.7647 MB / 1.242 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001676/0.3311, allocations: 38.97 kB / 1.242 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.3312, allocations: 95.34 kB / 1.242 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.3312, allocations: 3.938 kB / 1.242 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.3562, allocations: 6.517 MB / 1.248 GB, free: 1.16 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.514, allocations: 11.48 kB / 1.248 GB, free: 1.152 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv","/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) Reference file matches