Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.01073/0.01073, allocations: 101 kB / 15.73 MB, free: 6.473 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.001993/0.001993, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.542/2.542, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 68.44 kB / 0.9505 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2616, allocations: 140.4 MB / 1.088 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003222/0.2649, allocations: 1.967 MB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.2662, allocations: 0.6518 MB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2664, allocations: 0 / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.762e-05/0.2665, allocations: 23.67 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.2666, allocations: 39.58 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004635/0.2671, allocations: 147.8 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.2674, allocations: 319.1 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.2676, allocations: 48.38 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.2678, allocations: 139.6 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.268, allocations: 151.4 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.066e-05/0.268, allocations: 28 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.849e-05/0.2681, allocations: 32 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.2682, allocations: 75.78 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.2683, allocations: 139.3 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.2686, allocations: 298.4 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2686, allocations: 4 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.993e-06/0.2686, allocations: 3.938 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.2686, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 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.001291/0.2699, allocations: 0.62 MB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.27, allocations: 16.03 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.192e-05/0.2701, allocations: 62.72 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.026e-05/0.2701, allocations: 32.66 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.2703, allocations: 208.7 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.2705, allocations: 260.3 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.2706, allocations: 28.38 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.2711, allocations: 261.7 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.2711, allocations: 7.906 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.2712, allocations: 11.98 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.2712, allocations: 8 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.2716, allocations: 181.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.2729, allocations: 0.7776 MB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/0.2735, allocations: 207.7 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.2737, allocations: 130.5 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.2738, allocations: 16.28 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005649/0.2744, allocations: 307.1 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.716e-06/0.2744, allocations: 0 / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001025/0.2754, allocations: 486 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.2755, allocations: 114.8 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.2757, allocations: 183.3 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.257e-05/0.2757, allocations: 45.69 kB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/0.2758, allocations: 113.3 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.2759, allocations: 153.9 kB / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.2761, allocations: 102.3 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2762, allocations: 338.8 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.2765, allocations: 149.2 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.277, allocations: 252.8 kB / 1.096 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/0.2777, allocations: 398 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2777, allocations: 0 / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008746/0.2786, allocations: 493.3 kB / 1.097 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.2786, allocations: 8 kB / 1.097 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.2786, allocations: 4 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2786, allocations: 8 kB / 1.097 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.279, allocations: 95.83 kB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.279, allocations: 11.98 kB / 1.097 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.2793, allocations: 59.56 kB / 1.097 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.2794, allocations: 20 kB / 1.097 GB, free: 7.383 MB / 0.8575 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.0001606/0.2795, allocations: 159.5 kB / 1.098 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.174e-05/0.2796, allocations: 35.64 kB / 1.098 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.767e-05/0.2797, allocations: 29.88 kB / 1.098 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2797, allocations: 4 kB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2797, allocations: 0 / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2797, allocations: 12.06 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.2801, allocations: 353.2 kB / 1.098 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2801, allocations: 3.938 kB / 1.098 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003852/0.2805, allocations: 71.89 kB / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2805, allocations: 0 / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.2805, allocations: 23.98 kB / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.2805, allocations: 0 / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2805, allocations: 0 / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.2817, allocations: 0.5874 MB / 1.099 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.504e-05/0.2817, allocations: 108.7 kB / 1.099 GB, free: 5.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.2818, allocations: 7.984 kB / 1.099 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.282, allocations: 32.16 kB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.2822, allocations: 51.94 kB / 1.099 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.2822, allocations: 23.92 kB / 1.099 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.868e-05/0.2823, allocations: 120.1 kB / 1.099 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2823, allocations: 4 kB / 1.099 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003329/0.2826, allocations: 87.84 kB / 1.099 GB, free: 5.586 MB / 0.8575 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.2841, allocations: 1.149 MB / 1.1 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007714/0.2849, allocations: 382.7 kB / 1.101 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.2849, allocations: 4 kB / 1.101 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.2854, allocations: 195.1 kB / 1.101 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.2857, allocations: 38.41 kB / 1.101 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/0.2901, allocations: 3.155 MB / 1.104 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.2905, allocations: 0.7648 MB / 1.105 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001576/0.2906, allocations: 38.95 kB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.2908, allocations: 91.41 kB / 1.105 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of SimCode: time 4.3e-07/0.2908, allocations: 0 / 1.105 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.3194, allocations: 6.543 MB / 1.111 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.371, allocations: 13.61 kB / 1.111 GB, free: 9.184 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches