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.01031/0.01031, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001884/0.001884, allocations: 196.1 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.528/2.528, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 69.2 kB / 0.9509 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.366, allocations: 140.4 MB / 1.088 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002246/0.3683, allocations: 1.115 MB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3698, allocations: 1.1 MB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.852e-05/0.3699, allocations: 0 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.615e-05/0.37, allocations: 23.67 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.3701, allocations: 43.58 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.3706, allocations: 143.7 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.3709, allocations: 327.2 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.3711, allocations: 44.39 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.3712, allocations: 139.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.3714, allocations: 151.4 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.642e-05/0.3715, allocations: 28 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.141e-05/0.3715, allocations: 28 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.791e-05/0.3716, allocations: 75.8 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3718, allocations: 139.3 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.3721, allocations: 306.9 kB / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3721, allocations: 0 / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3721, allocations: 0 / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.148e-06/0.3721, allocations: 0 / 1.092 GB, free: 13.78 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.001206/0.3733, allocations: 0.6237 MB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3734, allocations: 12.02 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.412e-05/0.3734, allocations: 44.5 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.3736, allocations: 192.8 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/0.3739, allocations: 272.2 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.338e-05/0.3739, allocations: 32.3 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.3745, allocations: 259.8 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3745, allocations: 7.922 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.3745, allocations: 8 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3745, allocations: 8 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.3749, allocations: 183.8 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.376, allocations: 0.7776 MB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.3765, allocations: 199.7 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.3767, allocations: 134.5 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.3768, allocations: 8 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/0.3773, allocations: 319.4 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/0.3773, allocations: 4 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.0009985/0.3783, allocations: 482.8 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.3784, allocations: 122.7 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.3786, allocations: 179.3 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.3786, allocations: 41.7 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.3788, allocations: 113.3 kB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.3789, allocations: 153.9 kB / 1.096 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.379, allocations: 102.3 kB / 1.096 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3792, allocations: 346.7 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.3795, allocations: 145.2 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.3798, allocations: 252.8 kB / 1.096 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000592/0.3804, allocations: 398 kB / 1.097 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.3804, allocations: 4 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007789/0.3812, allocations: 485.5 kB / 1.097 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3813, allocations: 11.94 kB / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.3813, allocations: 0 / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.3813, allocations: 8 kB / 1.097 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003991/0.3817, allocations: 95.83 kB / 1.097 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.3817, allocations: 8 kB / 1.097 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.382, allocations: 55.66 kB / 1.097 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.382, allocations: 27.92 kB / 1.097 GB, free: 7.348 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.0001764/0.3822, allocations: 159.4 kB / 1.098 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.3823, allocations: 31.56 kB / 1.098 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.111e-05/0.3824, allocations: 41.94 kB / 1.098 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3824, allocations: 8 kB / 1.098 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3824, allocations: 0 / 1.098 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3824, allocations: 4 kB / 1.098 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.3828, allocations: 353.2 kB / 1.098 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3828, allocations: 0 / 1.098 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003811/0.3832, allocations: 75.89 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.3832, allocations: 11.88 kB / 1.098 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/0.3832, allocations: 15.98 kB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3832, allocations: 4 kB / 1.098 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3832, allocations: 4 kB / 1.098 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.3843, allocations: 0.5794 MB / 1.099 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.357e-05/0.3843, allocations: 100.8 kB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.3844, allocations: 19.94 kB / 1.099 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3846, allocations: 31.95 kB / 1.099 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3848, allocations: 55.94 kB / 1.099 GB, free: 5.762 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.3848, allocations: 19.98 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.938e-05/0.3849, allocations: 120.1 kB / 1.099 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3849, allocations: 0 / 1.099 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003052/0.3852, allocations: 80 kB / 1.099 GB, free: 5.547 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.0001838/0.3854, allocations: 121.2 kB / 1.099 GB, free: 5.422 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007119/0.3861, allocations: 386.7 kB / 1.1 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3862, allocations: 0 / 1.1 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.3865, allocations: 199 kB / 1.1 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.3868, allocations: 35.92 kB / 1.1 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.3879, allocations: 0.6329 MB / 1.1 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.3883, allocations: 0.7608 MB / 1.101 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001367/0.3884, allocations: 34.97 kB / 1.101 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.3886, allocations: 35.44 kB / 1.101 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/0.3886, allocations: 4 kB / 1.101 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of Templates: time 0.007975/0.3965, allocations: 4.118 MB / 1.105 GB, free: 15.21 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