Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 102.9 kB / 16.27 MB, free: 5.996 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.002083/0.002083, allocations: 186.3 kB / 17.2 MB, free: 5.605 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.47/1.47, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.65/2.65, allocations: 469.4 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 67.25 kB / 0.9088 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3389, allocations: 159.1 MB / 1.064 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002828/0.3418, allocations: 1.103 MB / 1.065 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.3436, allocations: 1.104 MB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.3438, allocations: 4 kB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 7.723e-05/0.3439, allocations: 27.67 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.3441, allocations: 39.58 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.3447, allocations: 147.7 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.3451, allocations: 323.1 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.3453, allocations: 48.39 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.3456, allocations: 135.6 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.3459, allocations: 151.4 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.3459, allocations: 28 kB / 1.067 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.072e-05/0.346, allocations: 32 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.3461, allocations: 75.78 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.3462, allocations: 139.3 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.3466, allocations: 299.3 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3466, allocations: 4 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3466, allocations: 0 / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.3466, allocations: 0 / 1.068 GB, free: 11.36 MB / 0.8419 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.00144/0.348, allocations: 0.6314 MB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3481, allocations: 12.62 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.3482, allocations: 28.66 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.3484, allocations: 200.8 kB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.3487, allocations: 268.3 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.651e-05/0.3487, allocations: 32.38 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/0.3493, allocations: 258.3 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.3493, allocations: 3.938 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3493, allocations: 8 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3493, allocations: 8 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.3498, allocations: 175.8 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.3509, allocations: 0.7775 MB / 1.07 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.3515, allocations: 217.1 kB / 1.07 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.3517, allocations: 130.5 kB / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/0.3518, allocations: 15.92 kB / 1.07 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005935/0.3524, allocations: 311.8 kB / 1.071 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 3.477e-06/0.3524, allocations: 0 / 1.071 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.001064/0.3535, allocations: 490.5 kB / 1.071 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.3536, allocations: 110.8 kB / 1.071 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.3537, allocations: 175.4 kB / 1.071 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.3538, allocations: 37.7 kB / 1.072 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/0.3539, allocations: 125.3 kB / 1.072 GB, free: 7.07 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.354, allocations: 150 kB / 1.072 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.3542, allocations: 106.3 kB / 1.072 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3543, allocations: 334.8 kB / 1.072 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.3547, allocations: 153.2 kB / 1.072 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.3551, allocations: 252.8 kB / 1.073 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.3557, allocations: 398 kB / 1.073 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.3558, allocations: 3.938 kB / 1.073 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009459/0.3567, allocations: 492.9 kB / 1.073 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.3567, allocations: 10.44 kB / 1.073 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3568, allocations: 4 kB / 1.073 GB, free: 5.109 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.3568, allocations: 4 kB / 1.073 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/0.3572, allocations: 99.83 kB / 1.074 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.3572, allocations: 4 kB / 1.074 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/0.3575, allocations: 59.64 kB / 1.074 GB, free: 4.945 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.3576, allocations: 23.94 kB / 1.074 GB, free: 4.922 MB / 0.8419 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.000198/0.3578, allocations: 162.9 kB / 1.074 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.823e-05/0.3579, allocations: 35.56 kB / 1.074 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.267e-05/0.3579, allocations: 33.86 kB / 1.074 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3579, allocations: 4 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.358, allocations: 4 kB / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.358, allocations: 4.047 kB / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.3584, allocations: 357.2 kB / 1.074 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.3584, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.3588, allocations: 75.89 kB / 1.074 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.3588, allocations: 7.938 kB / 1.074 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.3589, allocations: 11.98 kB / 1.074 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.3589, allocations: 4 kB / 1.074 GB, free: 4.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3589, allocations: 7.938 kB / 1.074 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.36, allocations: 0.5745 MB / 1.075 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.261e-05/0.3601, allocations: 104.8 kB / 1.075 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.3602, allocations: 11.94 kB / 1.075 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.3604, allocations: 35.95 kB / 1.075 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.3606, allocations: 36.23 kB / 1.075 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.3606, allocations: 23.86 kB / 1.075 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.699e-05/0.3607, allocations: 133.1 kB / 1.075 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3607, allocations: 0 / 1.075 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003687/0.3611, allocations: 84 kB / 1.075 GB, free: 3.141 MB / 0.8419 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.000198/0.3613, allocations: 115.7 kB / 1.075 GB, free: 3.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008491/0.3621, allocations: 400.5 kB / 1.076 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.3622, allocations: 3.938 kB / 1.076 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3625, allocations: 179.8 kB / 1.076 GB, free: 2.449 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.3629, allocations: 49.95 kB / 1.076 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.3644, allocations: 0.6511 MB / 1.077 GB, free: 1.711 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.3648, allocations: 0.7647 MB / 1.077 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.365, allocations: 35.44 kB / 1.077 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of SimCode: time 4.3e-07/0.365, allocations: 0 / 1.077 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of Templates: time 0.5345/0.8995, allocations: 3.948 MB / 1.081 GB, free: 21.8 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches