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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_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.001487/0.001487, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 195 kB / 16.53 MB, free: 6.391 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.968/2.968, allocations: 472.7 MB / 0.7452 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 74.5 kB / 0.9121 GB, free: 33.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.4091, allocations: 159.9 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.004132/0.4133, allocations: 1.969 MB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.4148, allocations: 0.6506 MB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.4149, allocations: 0 / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.752e-05/0.415, allocations: 19.69 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.4152, allocations: 47.56 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.4159, allocations: 143.8 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.4163, allocations: 323.2 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/0.4166, allocations: 48.38 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.4168, allocations: 135.5 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.4171, allocations: 151.4 kB / 1.072 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.216e-05/0.4171, allocations: 28 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.044e-05/0.4172, allocations: 32 kB / 1.072 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.509e-05/0.4173, allocations: 75.8 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.4174, allocations: 135.3 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.4177, allocations: 303.3 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4177, allocations: 0 / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4178, allocations: 7.875 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.4178, allocations: 0 / 1.072 GB, free: 6.293 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.001253/0.419, allocations: 0.6273 MB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4191, allocations: 12.03 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.4192, allocations: 32.66 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.4193, allocations: 200.8 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.4196, allocations: 268.3 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.4196, allocations: 24.38 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.4201, allocations: 261.9 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.4201, allocations: 7.844 kB / 1.074 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.4202, allocations: 12 kB / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4202, allocations: 4 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004192/0.4206, allocations: 181.4 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.4218, allocations: 0.7853 MB / 1.075 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/0.4223, allocations: 207.6 kB / 1.075 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.4226, allocations: 126.5 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.803e-05/0.4226, allocations: 15.98 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000599/0.4232, allocations: 307.9 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/0.4233, allocations: 3.938 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.0009927/0.4243, allocations: 486.5 kB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.4243, allocations: 118.8 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.4245, allocations: 175.5 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.4246, allocations: 45.69 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.4247, allocations: 113.3 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.4248, allocations: 142 kB / 1.076 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.425, allocations: 106.3 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4251, allocations: 338.8 kB / 1.077 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.4254, allocations: 149.2 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.4258, allocations: 256.7 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006413/0.4265, allocations: 398.1 kB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/0.4265, allocations: 4 kB / 1.077 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008502/0.4273, allocations: 488.8 kB / 1.078 GB, free: 72 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.4274, allocations: 12 kB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4274, allocations: 3.938 kB / 1.078 GB, free: 56 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.4274, allocations: 8 kB / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004047/0.4278, allocations: 91.83 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.4278, allocations: 12.05 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4281, allocations: 63.56 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.4282, allocations: 23.94 kB / 1.078 GB, free: 15.86 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.0002056/0.4284, allocations: 165.2 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/0.4284, allocations: 31.64 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.784e-05/0.4285, allocations: 33.81 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.4285, allocations: 8 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4286, allocations: 0 / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.4286, allocations: 3.984 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.429, allocations: 345.2 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.429, allocations: 0 / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.4294, allocations: 83.83 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.4294, allocations: 4 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.4294, allocations: 15.98 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.4294, allocations: 4 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.4295, allocations: 3.938 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.4305, allocations: 0.5745 MB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.303e-05/0.4306, allocations: 108.8 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.316e-05/0.4307, allocations: 15.97 kB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.4309, allocations: 27.97 kB / 1.079 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.4311, allocations: 55.94 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.4311, allocations: 19.98 kB / 1.08 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001124/0.4312, allocations: 129.2 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.034e-06/0.4312, allocations: 3.938 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003376/0.4316, allocations: 91.83 kB / 1.08 GB, free: 14.06 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.0002535/0.4318, allocations: 111.7 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008293/0.4327, allocations: 408.5 kB / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4327, allocations: 0 / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000426/0.4331, allocations: 207.7 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.4335, allocations: 40.86 kB / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.4348, allocations: 0.6105 MB / 1.081 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.4352, allocations: 0.7686 MB / 1.082 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001643/0.4354, allocations: 42.84 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.4355, allocations: 35.44 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.4355, allocations: 0 / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of Templates: time 0.008048/0.4436, allocations: 3.993 MB / 1.086 GB, free: 7.824 MB / 0.8419 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