Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, 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.001681/0.001681, allocations: 195 kB / 16.14 MB, free: 6.648 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.573/1.573, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.611/2.611, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.929/0.9304, allocations: 140.4 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003124/0.9335, allocations: 2.023 MB / 0.9509 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.9346, allocations: 0.6375 MB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.008e-05/0.9347, allocations: 2.156 kB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.021e-05/0.9347, allocations: 11.86 kB / 0.9516 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.9349, allocations: 32.8 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.9353, allocations: 129.6 kB / 0.9517 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000301/0.9356, allocations: 314.7 kB / 0.952 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.9357, allocations: 51.52 kB / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.9359, allocations: 115.2 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.9361, allocations: 146 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.835e-05/0.9362, allocations: 17.62 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.163e-05/0.9362, allocations: 17.16 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.9363, allocations: 68.12 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.9364, allocations: 124.2 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.9367, allocations: 293.4 kB / 0.9528 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.9367, allocations: 0 / 0.9528 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.092e-06/0.9368, allocations: 0 / 0.9528 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.9368, allocations: 0 / 0.9528 GB, free: 6.137 MB / 0.7169 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.00121/0.938, allocations: 0.6229 MB / 0.9534 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.938, allocations: 14.22 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.738e-05/0.9381, allocations: 29.53 kB / 0.9535 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.9383, allocations: 203.6 kB / 0.9536 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.9385, allocations: 269.3 kB / 0.9539 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/0.9385, allocations: 31.19 kB / 0.9539 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.939, allocations: 260.9 kB / 0.9542 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.9391, allocations: 1.156 kB / 0.9542 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.9391, allocations: 10.44 kB / 0.9542 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.9391, allocations: 4.625 kB / 0.9542 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/0.9396, allocations: 182.4 kB / 0.9544 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009854/0.9406, allocations: 0.7812 MB / 0.9551 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.9411, allocations: 205.8 kB / 0.9553 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.9414, allocations: 131.9 kB / 0.9555 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/0.9415, allocations: 6.094 kB / 0.9555 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006287/0.9421, allocations: 322.2 kB / 0.9558 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/0.9421, allocations: 0 / 0.9558 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001077/0.9432, allocations: 487.8 kB / 0.9562 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.9433, allocations: 114.4 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.9435, allocations: 179.8 kB / 0.9565 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.9435, allocations: 42.64 kB / 0.9566 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.9436, allocations: 120.4 kB / 0.9567 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.9437, allocations: 147.9 kB / 0.9568 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.9438, allocations: 110.1 kB / 0.9569 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.9439, allocations: 338 kB / 0.9572 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.9443, allocations: 144.2 kB / 0.9574 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.9446, allocations: 255.8 kB / 0.9576 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006309/0.9453, allocations: 401.3 kB / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.9453, allocations: 1.438 kB / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008914/0.9462, allocations: 490.9 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.9462, allocations: 8.062 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.9462, allocations: 6.578 kB / 0.9585 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/0.9463, allocations: 5.625 kB / 0.9585 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.9467, allocations: 97.94 kB / 0.9586 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.9467, allocations: 13.8 kB / 0.9586 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.947, allocations: 57.22 kB / 0.9587 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.947, allocations: 19.66 kB / 0.9587 GB, free: 1.598 MB / 0.7169 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.0001634/0.9472, allocations: 164 kB / 0.9588 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.9472, allocations: 28.34 kB / 0.9589 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.41e-05/0.9473, allocations: 31.31 kB / 0.9589 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.9473, allocations: 5.031 kB / 0.9589 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.9474, allocations: 1.406 kB / 0.9589 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.9474, allocations: 3.984 kB / 0.9589 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.9477, allocations: 353 kB / 0.9592 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.9477, allocations: 5.031 kB / 0.9592 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.9481, allocations: 80 kB / 0.9593 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.9482, allocations: 2.188 kB / 0.9593 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.9482, allocations: 16.67 kB / 0.9593 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.9482, allocations: 6.25 kB / 0.9593 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.9482, allocations: 1.125 kB / 0.9593 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.9493, allocations: 0.5751 MB / 0.9599 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.9494, allocations: 112.3 kB / 0.96 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.183e-05/0.9494, allocations: 15.83 kB / 0.96 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.9496, allocations: 32.56 kB / 0.9601 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.9498, allocations: 55.17 kB / 0.9601 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.9498, allocations: 19.23 kB / 0.9601 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.594e-05/0.9499, allocations: 124.7 kB / 0.9602 GB, free: 432 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9499, allocations: 0 / 0.9602 GB, free: 432 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003455/0.9503, allocations: 79.16 kB / 0.9603 GB, free: 416 kB / 0.7169 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.0002183/0.9505, allocations: 123.7 kB / 0.9604 GB, free: 312 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008524/0.9514, allocations: 393 kB / 0.9608 GB, free: 148 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.9514, allocations: 0 / 0.9608 GB, free: 148 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.9518, allocations: 197.2 kB / 0.961 GB, free: 68 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.9522, allocations: 42.41 kB / 0.961 GB, free: 44 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.9536, allocations: 0.6867 MB / 0.9617 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.954, allocations: 0.7664 MB / 0.9625 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001709/0.9542, allocations: 44.78 kB / 0.9625 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.9543, allocations: 36.55 kB / 0.9625 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.9543, allocations: 0 / 0.9625 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of Templates: time 0.007928/0.9623, allocations: 3.415 MB / 0.9659 GB, free: 13.13 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches