Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 111.7 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 204 kB / 20.09 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.978/2.978, allocations: 0.49 GB / 0.7923 GB, free: 1.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 71.89 kB / 1.15 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9478/0.95, allocations: 176.1 MB / 1.322 GB, free: 25.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.00266/0.9526, allocations: 2.005 MB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.9537, allocations: 0.7474 MB / 1.325 GB, free: 23.08 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.255e-05/0.9538, allocations: 0 / 1.325 GB, free: 23.08 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.538e-05/0.9538, allocations: 19.69 kB / 1.325 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.954, allocations: 44.14 kB / 1.325 GB, free: 23.03 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.9544, allocations: 170.4 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002809/0.9547, allocations: 337 kB / 1.325 GB, free: 22.79 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.9548, allocations: 34.89 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.955, allocations: 144.4 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.9552, allocations: 146.9 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.9552, allocations: 29.56 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.816e-05/0.9553, allocations: 38.19 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.646e-05/0.9553, allocations: 78.41 kB / 1.326 GB, free: 22.59 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.946e-05/0.9554, allocations: 141.8 kB / 1.326 GB, free: 22.51 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.9557, allocations: 316.4 kB / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.9557, allocations: 0 / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.734e-06/0.9557, allocations: 4 kB / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.9557, allocations: 0 / 1.326 GB, free: 22.39 MB / 1.061 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.001067/0.9567, allocations: 0.6379 MB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.9568, allocations: 12.05 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.9571, allocations: 62.38 kB / 1.327 GB, free: 21.88 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.9574, allocations: 243.3 kB / 1.327 GB, free: 21.65 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.9575, allocations: 265.9 kB / 1.327 GB, free: 21.36 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/0.9576, allocations: 37.64 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.9581, allocations: 263.3 kB / 1.328 GB, free: 21.21 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.9581, allocations: 5.938 kB / 1.328 GB, free: 21.21 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.9581, allocations: 6.438 kB / 1.328 GB, free: 21.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.9581, allocations: 4.344 kB / 1.328 GB, free: 21.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004392/0.9586, allocations: 173.6 kB / 1.328 GB, free: 21.15 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009336/0.9595, allocations: 0.7805 MB / 1.329 GB, free: 20.56 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.96, allocations: 199.5 kB / 1.329 GB, free: 20.44 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.9602, allocations: 127.7 kB / 1.329 GB, free: 20.38 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.9603, allocations: 6.438 kB / 1.329 GB, free: 20.38 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005811/0.9609, allocations: 317.8 kB / 1.329 GB, free: 20.22 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.9609, allocations: 0.5625 kB / 1.329 GB, free: 20.22 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001154/0.962, allocations: 491.8 kB / 1.33 GB, free: 20.04 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.9621, allocations: 125.2 kB / 1.33 GB, free: 19.9 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.9622, allocations: 183.2 kB / 1.33 GB, free: 19.78 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.9623, allocations: 38.7 kB / 1.33 GB, free: 19.74 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.14e-05/0.9623, allocations: 121.8 kB / 1.33 GB, free: 19.63 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.9624, allocations: 153.8 kB / 1.33 GB, free: 19.51 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.9626, allocations: 105.4 kB / 1.33 GB, free: 19.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.9626, allocations: 347.8 kB / 1.331 GB, free: 19.12 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.9629, allocations: 144.4 kB / 1.331 GB, free: 19.08 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.9633, allocations: 255.5 kB / 1.331 GB, free: 18.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/0.9639, allocations: 398.3 kB / 1.331 GB, free: 18.67 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.9639, allocations: 0 / 1.331 GB, free: 18.67 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008882/0.9648, allocations: 498.4 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.9648, allocations: 6.484 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.9648, allocations: 7.312 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.9649, allocations: 6.172 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/0.9653, allocations: 95.05 kB / 1.332 GB, free: 18.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.9653, allocations: 6.047 kB / 1.332 GB, free: 18.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.9656, allocations: 61.97 kB / 1.332 GB, free: 18.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.9656, allocations: 19.69 kB / 1.332 GB, free: 18.41 MB / 1.061 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.0001361/0.9657, allocations: 166.3 kB / 1.332 GB, free: 18.26 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.174e-05/0.9658, allocations: 33.75 kB / 1.332 GB, free: 18.24 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851e-05/0.9658, allocations: 33.05 kB / 1.332 GB, free: 18.21 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.9658, allocations: 5.062 kB / 1.332 GB, free: 18.21 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.9659, allocations: 1 kB / 1.332 GB, free: 18.21 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.9659, allocations: 7.75 kB / 1.332 GB, free: 18.2 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.9662, allocations: 353.7 kB / 1.333 GB, free: 17.94 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.9662, allocations: 0.7031 kB / 1.333 GB, free: 17.94 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.9666, allocations: 74.62 kB / 1.333 GB, free: 17.93 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.9666, allocations: 2.875 kB / 1.333 GB, free: 17.93 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.9667, allocations: 15.56 kB / 1.333 GB, free: 17.92 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.9667, allocations: 6.375 kB / 1.333 GB, free: 17.92 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9667, allocations: 0.875 kB / 1.333 GB, free: 17.92 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.9678, allocations: 0.5945 MB / 1.333 GB, free: 17.64 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.9678, allocations: 106.2 kB / 1.333 GB, free: 17.52 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.9679, allocations: 9.359 kB / 1.333 GB, free: 17.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.9681, allocations: 33.59 kB / 1.333 GB, free: 17.51 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.9682, allocations: 41.12 kB / 1.334 GB, free: 17.5 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.9683, allocations: 13.45 kB / 1.334 GB, free: 17.5 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.316e-05/0.9683, allocations: 133.6 kB / 1.334 GB, free: 17.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9683, allocations: 1.312 kB / 1.334 GB, free: 17.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003582/0.9687, allocations: 82.84 kB / 1.334 GB, free: 17.39 MB / 1.061 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.0001501/0.9689, allocations: 115.2 kB / 1.334 GB, free: 17.29 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008798/0.9697, allocations: 375.7 kB / 1.334 GB, free: 17.17 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.9697, allocations: 0.5312 kB / 1.334 GB, free: 17.17 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.9702, allocations: 168.9 kB / 1.334 GB, free: 17.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.9705, allocations: 52.89 kB / 1.334 GB, free: 17.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.9718, allocations: 0.6548 MB / 1.335 GB, free: 16.67 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.972, allocations: 0.767 MB / 1.336 GB, free: 15.96 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.9721, allocations: 38.53 kB / 1.336 GB, free: 15.95 MB / 1.061 GB Notification: Performance of SimCode: time 3.5e-07/0.9721, allocations: 0.9688 kB / 1.336 GB, free: 15.95 MB / 1.061 GB Notification: Performance of Templates: time 0.007155/0.9793, allocations: 4.056 MB / 1.34 GB, free: 15.57 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time [Calling sys.exit(0), Time elapsed: 11.879069148999406]