Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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_nonZeroStart,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_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,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_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001747/0.001748, allocations: 191.8 kB / 16.14 MB, free: 6.691 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.387/1.387, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.868/2.868, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 66.53 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3303, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003278/0.3337, allocations: 2.022 MB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.3348, allocations: 0.6581 MB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.079e-05/0.3349, allocations: 4 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.817e-05/0.335, allocations: 11.88 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.3352, allocations: 35.69 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.3356, allocations: 131.7 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.3359, allocations: 303.2 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.3361, allocations: 44.39 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.3362, allocations: 123.5 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.3364, allocations: 143.4 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.3365, allocations: 16 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.103e-05/0.3365, allocations: 20 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.3366, allocations: 67.78 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.3367, allocations: 127.4 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.337, allocations: 283.3 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.337, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.41e-07/0.337, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.337, allocations: 0 / 1.056 GB, free: 4.875 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.001251/0.3383, allocations: 0.6237 MB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3384, allocations: 15.97 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.3384, allocations: 32.56 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.3386, allocations: 196.8 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.3388, allocations: 272.3 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.3389, allocations: 32.36 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.3394, allocations: 261.8 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.3394, allocations: 4 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.3394, allocations: 4 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.3394, allocations: 8 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.3399, allocations: 175.8 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.341, allocations: 0.7736 MB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.3415, allocations: 205.8 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.3418, allocations: 134.5 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.811e-05/0.3419, allocations: 8 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005956/0.3425, allocations: 319.5 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 1.973e-06/0.3425, allocations: 224 / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001051/0.3435, allocations: 487.2 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.3436, allocations: 114.8 kB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3438, allocations: 183.3 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.3438, allocations: 37.7 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.3439, allocations: 117.3 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.344, allocations: 153.9 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3442, allocations: 106.3 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3443, allocations: 338.8 kB / 1.06 GB, free: 4 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.3446, allocations: 145.2 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.345, allocations: 256.8 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006838/0.3456, allocations: 394 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3457, allocations: 0 / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009225/0.3466, allocations: 496.9 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.3466, allocations: 5.25 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.3467, allocations: 4 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.3467, allocations: 4.062 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.3471, allocations: 103.8 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.3471, allocations: 4 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.3474, allocations: 55.66 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.3475, allocations: 27.98 kB / 1.062 GB, free: 14.46 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.0001928/0.3477, allocations: 160.1 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.794e-05/0.3478, allocations: 35.56 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.518e-05/0.3478, allocations: 37.8 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.3479, allocations: 4 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/0.3479, allocations: 7.938 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3479, allocations: 3.938 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004503/0.3484, allocations: 357.2 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3484, allocations: 0 / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004236/0.3488, allocations: 79.83 kB / 1.062 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.3488, allocations: 4 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.3489, allocations: 11.98 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3489, allocations: 4 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.3489, allocations: 4 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.3501, allocations: 0.5784 MB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.349e-05/0.3502, allocations: 108.7 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.3502, allocations: 12 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3505, allocations: 31.95 kB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3506, allocations: 51.92 kB / 1.063 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.3507, allocations: 16 kB / 1.063 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001013/0.3508, allocations: 125.2 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3508, allocations: 0 / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003251/0.3511, allocations: 79.98 kB / 1.063 GB, free: 12.67 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.0002262/0.3513, allocations: 124.1 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007303/0.3521, allocations: 394.9 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3521, allocations: 0 / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.3525, allocations: 203.7 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.3528, allocations: 48.12 kB / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.354, allocations: 0.7054 MB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3544, allocations: 0.7608 MB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001669/0.3546, allocations: 42.95 kB / 1.066 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3547, allocations: 27.62 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.3547, allocations: 0 / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of Templates: time 0.007217/0.3619, allocations: 3.415 MB / 1.069 GB, free: 6.941 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches