Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01103/0.01103, allocations: 98.42 kB / 15.73 MB, free: 6.031 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.001964/0.001964, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.363/2.363, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 71.89 kB / 0.9509 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045/1.047, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002378/1.049, allocations: 1.113 MB / 1.089 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001406/1.051, allocations: 1.1 MB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.267e-05/1.051, allocations: 2.375 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.909e-05/1.051, allocations: 17.48 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/1.051, allocations: 49.97 kB / 1.09 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/1.052, allocations: 148.3 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003467/1.052, allocations: 326.3 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/1.052, allocations: 45.67 kB / 1.091 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/1.052, allocations: 134.2 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/1.053, allocations: 146.9 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.359e-05/1.053, allocations: 29.97 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/1.053, allocations: 29.12 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/1.053, allocations: 80.62 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000146/1.053, allocations: 135.8 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004413/1.053, allocations: 321 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/1.053, allocations: 0 / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.314e-06/1.053, allocations: 1.391 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.826e-06/1.053, allocations: 0 / 1.092 GB, free: 3.27 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.001257/1.055, allocations: 0.627 MB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/1.055, allocations: 9.281 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.075e-05/1.055, allocations: 34.44 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/1.055, allocations: 202.7 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/1.055, allocations: 262.5 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/1.055, allocations: 28.19 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/1.056, allocations: 268.3 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/1.056, allocations: 9.641 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/1.056, allocations: 7.109 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/1.056, allocations: 6.047 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004594/1.056, allocations: 172.9 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/1.057, allocations: 0.7781 MB / 1.094 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/1.058, allocations: 202.9 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/1.058, allocations: 130 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/1.058, allocations: 15.53 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006518/1.059, allocations: 315.2 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/1.059, allocations: 224 / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001197/1.06, allocations: 494.3 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/1.06, allocations: 115.3 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/1.06, allocations: 178.3 kB / 1.095 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/1.06, allocations: 46.2 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/1.06, allocations: 117.4 kB / 1.095 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/1.061, allocations: 159.8 kB / 1.096 GB, free: 420 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/1.061, allocations: 103.5 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.575e-05/1.061, allocations: 339.6 kB / 1.096 GB, free: 32 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/1.061, allocations: 152.1 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004504/1.062, allocations: 246.6 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007771/1.062, allocations: 394.5 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/1.062, allocations: 1.688 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001059/1.064, allocations: 497.3 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/1.064, allocations: 10.97 kB / 1.097 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/1.064, allocations: 2.5 kB / 1.097 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/1.064, allocations: 5.656 kB / 1.097 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/1.064, allocations: 99.02 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/1.064, allocations: 6.078 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/1.064, allocations: 66.59 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/1.064, allocations: 20.09 kB / 1.097 GB, free: 15.32 MB / 0.8731 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.0002023/1.065, allocations: 158.2 kB / 1.098 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/1.065, allocations: 28.81 kB / 1.098 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.527e-05/1.065, allocations: 32.23 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/1.065, allocations: 5.469 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.065, allocations: 6.734 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/1.065, allocations: 3.062 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000478/1.065, allocations: 355.4 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/1.065, allocations: 1.156 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/1.066, allocations: 70.8 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/1.066, allocations: 10.56 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/1.066, allocations: 15.47 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/1.066, allocations: 7.297 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.066, allocations: 1.344 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/1.067, allocations: 0.5889 MB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/1.067, allocations: 101 kB / 1.099 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/1.067, allocations: 13.83 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/1.067, allocations: 33.27 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/1.068, allocations: 59.95 kB / 1.099 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/1.068, allocations: 17.56 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001241/1.068, allocations: 126.3 kB / 1.099 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.068, allocations: 1.094 kB / 1.099 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003813/1.068, allocations: 83.62 kB / 1.099 GB, free: 14.29 MB / 0.8731 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.0002278/1.068, allocations: 122 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008881/1.069, allocations: 389.6 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.069, allocations: 0 / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004456/1.07, allocations: 189.8 kB / 1.1 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/1.07, allocations: 45.55 kB / 1.1 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/1.072, allocations: 0.6163 MB / 1.1 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/1.072, allocations: 0.7648 MB / 1.101 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001811/1.072, allocations: 42.44 kB / 1.101 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/1.072, allocations: 36.52 kB / 1.101 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/1.072, allocations: 3.938 kB / 1.101 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.0107/1.083, allocations: 3.934 MB / 1.105 GB, free: 12.63 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches