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.001635/0.001635, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001881/0.001881, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.378/1.378, allocations: 222.9 MB / 240.6 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.046/3.046, allocations: 469.4 MB / 0.7423 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 75.36 kB / 0.9083 GB, free: 34.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3533, allocations: 159.1 MB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002751/0.3561, allocations: 1.156 MB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001821/0.358, allocations: 1.112 MB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.3582, allocations: 3.938 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.551e-05/0.3583, allocations: 11.86 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.3585, allocations: 31.72 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006288/0.3592, allocations: 123.9 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.3596, allocations: 327.1 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.3598, allocations: 44.39 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.3602, allocations: 131.6 kB / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.3605, allocations: 159.3 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.3606, allocations: 28 kB / 1.067 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.17e-05/0.3607, allocations: 32 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.347e-05/0.3607, allocations: 71.8 kB / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.3609, allocations: 139.3 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.3613, allocations: 223.8 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3613, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3613, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.3613, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 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.00152/0.3628, allocations: 0.6314 MB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.3629, allocations: 12.03 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.363, allocations: 32.64 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.3632, allocations: 196.8 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/0.3635, allocations: 260.3 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-05/0.3636, allocations: 40.3 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.3642, allocations: 258.3 kB / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.3642, allocations: 7.922 kB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.3642, allocations: 16 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3642, allocations: 4 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.3647, allocations: 175.8 kB / 1.069 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3659, allocations: 0.7737 MB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/0.3664, allocations: 207.7 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.3667, allocations: 130.5 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.3667, allocations: 11.98 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.3673, allocations: 315.6 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.575e-06/0.3673, allocations: 0 / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001092/0.3684, allocations: 488.1 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.3685, allocations: 114.8 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.3687, allocations: 183.4 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.156e-05/0.3688, allocations: 37.7 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.3689, allocations: 121.2 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.3691, allocations: 150 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.3692, allocations: 102.3 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3694, allocations: 346.8 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.3698, allocations: 145.2 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/0.3702, allocations: 256.8 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/0.3709, allocations: 397.9 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3709, allocations: 0 / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000877/0.3718, allocations: 488.9 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3718, allocations: 17.8 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.3719, allocations: 4 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3719, allocations: 4 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.3723, allocations: 99.89 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.3723, allocations: 4 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.3726, allocations: 59.59 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.3727, allocations: 24 kB / 1.073 GB, free: 4.887 MB / 0.8262 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.0001919/0.3729, allocations: 163.4 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.3729, allocations: 31.56 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.02e-05/0.373, allocations: 37.94 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.373, allocations: 8 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3731, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3731, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.3735, allocations: 357.2 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3735, allocations: 0 / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.3739, allocations: 79.89 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.374, allocations: 7.938 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.374, allocations: 8 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.374, allocations: 7.984 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.374, allocations: 0 / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.3751, allocations: 0.5861 MB / 1.074 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/0.3752, allocations: 100.8 kB / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.48e-05/0.3753, allocations: 15.94 kB / 1.074 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3755, allocations: 31.95 kB / 1.074 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3756, allocations: 35.95 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.3757, allocations: 16 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001001/0.3758, allocations: 133.1 kB / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3758, allocations: 0 / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003497/0.3762, allocations: 80 kB / 1.075 GB, free: 3.109 MB / 0.8262 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.000216/0.3764, allocations: 115.3 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008372/0.3772, allocations: 405.8 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3772, allocations: 192 / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.3776, allocations: 187.7 kB / 1.075 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.378, allocations: 49.38 kB / 1.075 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3794, allocations: 0.7252 MB / 1.076 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/0.3798, allocations: 0.7647 MB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.3799, allocations: 35.44 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3799, allocations: 0 / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of Templates: time 0.007759/0.3877, allocations: 3.955 MB / 1.081 GB, free: 12.83 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