Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_nonZeroStart,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",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.007781/0.007781, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001934/0.001934, allocations: 201.2 kB / 16.68 MB, free: 5.965 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.549/2.549, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 67.91 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2988, allocations: 151.6 MB / 1.166 GB, free: 7.348 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003142/0.302, allocations: 1.971 MB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.3031, allocations: 0.6544 MB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.178e-05/0.3032, allocations: 4 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.234e-05/0.3033, allocations: 19.73 kB / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.3034, allocations: 43.52 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.3038, allocations: 147.8 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002928/0.3041, allocations: 323.1 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.3043, allocations: 44.39 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.3045, allocations: 131.6 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.3047, allocations: 151.4 kB / 1.17 GB, free: 3.848 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.675e-05/0.3047, allocations: 36 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 3.957e-05/0.3048, allocations: 28 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.792e-05/0.3048, allocations: 79.72 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.305, allocations: 135.4 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.3053, allocations: 307 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3053, allocations: 0 / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.477e-06/0.3053, allocations: 3.984 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.3053, allocations: 0 / 1.17 GB, free: 3.27 MB / 0.92 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.001303/0.3066, allocations: 0.6351 MB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.3067, allocations: 8.031 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.345e-05/0.3068, allocations: 58.73 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.224e-05/0.3068, allocations: 32.8 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.307, allocations: 200.9 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.3072, allocations: 260.3 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.3073, allocations: 32.33 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.3078, allocations: 265.6 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.3078, allocations: 0 / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.3078, allocations: 11.98 kB / 1.172 GB, free: 1.617 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3078, allocations: 8 kB / 1.172 GB, free: 1.609 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000407/0.3083, allocations: 179.8 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.3093, allocations: 0.7738 MB / 1.173 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.3097, allocations: 199.7 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002499/0.31, allocations: 134.5 kB / 1.173 GB, free: 244 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.31, allocations: 12.38 kB / 1.173 GB, free: 232 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005961/0.3106, allocations: 315.5 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.3107, allocations: 4 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.0009931/0.3117, allocations: 492.8 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.3117, allocations: 122.7 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.3119, allocations: 171.5 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.3119, allocations: 41.7 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.966e-05/0.312, allocations: 121.3 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3121, allocations: 158.8 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3123, allocations: 106.3 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3124, allocations: 338.8 kB / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.3127, allocations: 149.2 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.313, allocations: 248.8 kB / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000598/0.3136, allocations: 398 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3137, allocations: 0 / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008261/0.3145, allocations: 497 kB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3145, allocations: 4 kB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3145, allocations: 8 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3146, allocations: 4 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.3149, allocations: 103.8 kB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.315, allocations: 8.703 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.3152, allocations: 55.75 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.3153, allocations: 19.94 kB / 1.176 GB, free: 12.77 MB / 0.9356 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.0001534/0.3154, allocations: 163.5 kB / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.3155, allocations: 31.75 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.362e-05/0.3156, allocations: 33.88 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3156, allocations: 4 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3156, allocations: 4 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3156, allocations: 7.922 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.3159, allocations: 357.2 kB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3159, allocations: 3.938 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/0.3164, allocations: 71.89 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3164, allocations: 4 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.3164, allocations: 12 kB / 1.177 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3164, allocations: 0 / 1.177 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3164, allocations: 8 kB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.3175, allocations: 0.5823 MB / 1.177 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.852e-05/0.3175, allocations: 112.8 kB / 1.177 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.3176, allocations: 12 kB / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.3178, allocations: 31.97 kB / 1.178 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.318, allocations: 51.92 kB / 1.178 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.318, allocations: 19.94 kB / 1.178 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.882e-05/0.3181, allocations: 125.2 kB / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3181, allocations: 192 / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003165/0.3184, allocations: 80 kB / 1.178 GB, free: 10.97 MB / 0.9356 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.001286/0.3197, allocations: 1.155 MB / 1.179 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007054/0.3204, allocations: 395.2 kB / 1.179 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3204, allocations: 0 / 1.179 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.3208, allocations: 192.4 kB / 1.179 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.3211, allocations: 40.11 kB / 1.179 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/0.325, allocations: 3.178 MB / 1.183 GB, free: 5.84 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.3253, allocations: 0.7725 MB / 1.183 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001549/0.3254, allocations: 34.97 kB / 1.183 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3256, allocations: 91.41 kB / 1.183 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.3256, allocations: 0 / 1.183 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.3505, allocations: 6.544 MB / 1.19 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.346, allocations: 8.578 kB / 1.19 GB, free: 14.54 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.csv --start-time 100 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.32 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches