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.009751/0.009759, allocations: 95.48 kB / 15.73 MB, free: 6.484 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.002061/0.002062, allocations: 191.1 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.514/2.514, allocations: 222.9 MB / 240.4 MB, free: 4.332 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 4.414/4.414, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 60.25 kB / 0.9505 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5237/0.5258, allocations: 140.4 MB / 1.088 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.00767/0.5335, allocations: 1.959 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.5359, allocations: 0.648 MB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.5362, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.5364, allocations: 23.67 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003517/0.5368, allocations: 43.58 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.5379, allocations: 147.7 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008494/0.5388, allocations: 323.2 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.5392, allocations: 48.38 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005192/0.5397, allocations: 139.5 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.5402, allocations: 147.4 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.5403, allocations: 32 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.8e-05/0.5404, allocations: 28 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.5406, allocations: 79.8 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000283/0.5409, allocations: 143.3 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006401/0.5416, allocations: 303 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.5416, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.084e-06/0.5416, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.891e-05/0.5416, allocations: 3.938 kB / 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.002537/0.5442, allocations: 0.6351 MB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 9.297e-05/0.5443, allocations: 8.031 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.5445, allocations: 58.72 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.5447, allocations: 32.75 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.5451, allocations: 196.9 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005069/0.5456, allocations: 272.2 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.5458, allocations: 28.38 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.5469, allocations: 261.7 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-05/0.5469, allocations: 3.953 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/0.547, allocations: 11.94 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.547, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008938/0.5479, allocations: 191.8 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.5503, allocations: 0.7737 MB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.5514, allocations: 207.7 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005672/0.552, allocations: 126.5 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.514e-05/0.5521, allocations: 20.3 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.5534, allocations: 307.1 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 6.923e-06/0.5534, allocations: 0 / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.002252/0.5556, allocations: 490.2 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.5559, allocations: 110.8 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.5562, allocations: 179.4 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.135e-05/0.5564, allocations: 49.62 kB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.5565, allocations: 117.3 kB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/0.5568, allocations: 154.8 kB / 1.096 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003645/0.5572, allocations: 114.3 kB / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002357/0.5575, allocations: 334.8 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006664/0.5582, allocations: 145.2 kB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008143/0.559, allocations: 256.8 kB / 1.096 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.5604, allocations: 390 kB / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.5604, allocations: 4 kB / 1.097 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001979/0.5624, allocations: 497.1 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.5625, allocations: 4 kB / 1.097 GB, free: 7.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.5625, allocations: 4 kB / 1.097 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.084e-05/0.5626, allocations: 4 kB / 1.097 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008581/0.5635, allocations: 95.83 kB / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.111e-05/0.5635, allocations: 11.92 kB / 1.097 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006659/0.5642, allocations: 67.7 kB / 1.097 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-05/0.5643, allocations: 20 kB / 1.097 GB, free: 7.371 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.0003928/0.5647, allocations: 159.4 kB / 1.098 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.5649, allocations: 31.78 kB / 1.098 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.565, allocations: 29.88 kB / 1.098 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.5651, allocations: 4 kB / 1.098 GB, free: 7.141 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/0.5651, allocations: 12.06 kB / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.5651, allocations: 3.984 kB / 1.098 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/0.5659, allocations: 349.2 kB / 1.098 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.566, allocations: 3.938 kB / 1.098 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008826/0.5669, allocations: 75.89 kB / 1.098 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.405e-05/0.5669, allocations: 7.938 kB / 1.098 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.046e-05/0.567, allocations: 11.98 kB / 1.098 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.567, allocations: 0 / 1.098 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.567, allocations: 4.094 kB / 1.098 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.5693, allocations: 0.5999 MB / 1.099 GB, free: 6.008 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.5695, allocations: 104.8 kB / 1.099 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.5696, allocations: 15.98 kB / 1.099 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004879/0.5701, allocations: 31.97 kB / 1.099 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.5703, allocations: 51.94 kB / 1.099 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.023e-05/0.5704, allocations: 15.98 kB / 1.099 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002136/0.5707, allocations: 124.1 kB / 1.099 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.91e-07/0.5707, allocations: 4 kB / 1.099 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007848/0.5715, allocations: 75.95 kB / 1.099 GB, free: 5.574 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.002973/0.5745, allocations: 1.152 MB / 1.1 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001829/0.5764, allocations: 388 kB / 1.101 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.61e-05/0.5764, allocations: 4 kB / 1.101 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008783/0.5773, allocations: 195 kB / 1.101 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007329/0.5781, allocations: 44.59 kB / 1.101 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.5866, allocations: 3.165 MB / 1.104 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.5873, allocations: 0.7648 MB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003488/0.5877, allocations: 38.95 kB / 1.105 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.588, allocations: 91.41 kB / 1.105 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of SimCode: time 1.583e-06/0.5881, allocations: 384 / 1.105 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05096/0.639, allocations: 6.54 MB / 1.111 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.81, allocations: 17.55 kB / 1.111 GB, free: 9.145 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