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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.002094/0.002094, allocations: 100.4 kB / 16.35 MB, free: 6.285 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.001909/0.001909, allocations: 196.2 kB / 17.29 MB, free: 5.863 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.525/2.525, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 73.97 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3574, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00279/0.3602, allocations: 1.129 MB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3617, allocations: 1.108 MB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.221e-05/0.3618, allocations: 0 / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.661e-05/0.3618, allocations: 15.75 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.362, allocations: 43.52 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004831/0.3625, allocations: 151.7 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003568/0.3628, allocations: 331.2 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.3631, allocations: 44.25 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.3633, allocations: 139.5 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.3635, allocations: 147.4 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.3636, allocations: 28 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.261e-05/0.3636, allocations: 32 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.3637, allocations: 75.8 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3638, allocations: 135.3 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.3642, allocations: 314.9 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3642, allocations: 4 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.824e-06/0.3642, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.3642, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 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.001262/0.3655, allocations: 0.6237 MB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3656, allocations: 12.03 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.639e-05/0.3656, allocations: 32.56 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.3658, allocations: 197.4 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.366, allocations: 264.3 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.955e-05/0.3661, allocations: 32.36 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.3666, allocations: 262.3 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.3666, allocations: 7.938 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.3666, allocations: 4 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.3666, allocations: 8 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.3671, allocations: 175.9 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3682, allocations: 0.7775 MB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.3687, allocations: 215.7 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.3689, allocations: 126.5 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.369, allocations: 4 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.3695, allocations: 327.5 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.693e-06/0.3696, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001053/0.3706, allocations: 488.1 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.3707, allocations: 118.8 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3709, allocations: 175.4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.3709, allocations: 45.7 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.371, allocations: 125.2 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.3712, allocations: 146 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3713, allocations: 110.3 kB / 1.034 GB, free: 9.867 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3714, allocations: 334.8 kB / 1.035 GB, free: 9.531 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.3717, allocations: 145.2 kB / 1.035 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.3721, allocations: 256.8 kB / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006042/0.3727, allocations: 398 kB / 1.036 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3727, allocations: 0 / 1.036 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008859/0.3736, allocations: 484.9 kB / 1.036 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.3736, allocations: 11.94 kB / 1.036 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3737, allocations: 4 kB / 1.036 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.3737, allocations: 8 kB / 1.036 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.3741, allocations: 95.83 kB / 1.036 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.3741, allocations: 4 kB / 1.036 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.3744, allocations: 59.64 kB / 1.036 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.3744, allocations: 20 kB / 1.036 GB, free: 7.996 MB / 0.8106 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.0001689/0.3746, allocations: 171.3 kB / 1.036 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.3746, allocations: 31.56 kB / 1.036 GB, free: 7.785 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.34e-05/0.3747, allocations: 33.86 kB / 1.036 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.3747, allocations: 4 kB / 1.036 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.3747, allocations: 0 / 1.036 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3747, allocations: 4 kB / 1.036 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003867/0.3751, allocations: 353.2 kB / 1.037 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3751, allocations: 0 / 1.037 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.3755, allocations: 76.05 kB / 1.037 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3756, allocations: 15.86 kB / 1.037 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.3756, allocations: 23.98 kB / 1.037 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3756, allocations: 0 / 1.037 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3756, allocations: 0 / 1.037 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.3766, allocations: 0.5746 MB / 1.037 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.221e-05/0.3767, allocations: 104.8 kB / 1.038 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.3767, allocations: 15.94 kB / 1.038 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.377, allocations: 27.95 kB / 1.038 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.3771, allocations: 59.97 kB / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.3771, allocations: 20.17 kB / 1.038 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.849e-05/0.3772, allocations: 125.2 kB / 1.038 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.9e-07/0.3773, allocations: 3.938 kB / 1.038 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000315/0.3776, allocations: 80 kB / 1.038 GB, free: 6.199 MB / 0.8106 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.0001972/0.3778, allocations: 119.2 kB / 1.038 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007225/0.3785, allocations: 392.5 kB / 1.038 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3785, allocations: 4 kB / 1.038 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003727/0.3789, allocations: 190.9 kB / 1.038 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.3792, allocations: 40.06 kB / 1.039 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.3804, allocations: 0.618 MB / 1.039 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3807, allocations: 0.7647 MB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001412/0.3809, allocations: 38.97 kB / 1.04 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.381, allocations: 43.42 kB / 1.04 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.381, allocations: 0 / 1.04 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of Templates: time 0.007205/0.3882, allocations: 3.886 MB / 1.044 GB, free: 76 kB / 0.8106 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 -s cvode -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