Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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,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") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 110.4 kB / 15.99 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.001759/0.001759, allocations: 195.7 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.484/1.484, allocations: 222.9 MB / 240.6 MB, free: 4.52 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.544/2.544, allocations: 390.2 MB / 0.665 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 63.91 kB / 0.8127 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7221/0.7237, allocations: 140.4 MB / 0.9498 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002006/0.7258, allocations: 1.153 MB / 0.9509 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.7268, allocations: 1.112 MB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.759e-05/0.7269, allocations: 1.094 kB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.51e-05/0.7269, allocations: 9.094 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.727, allocations: 36.22 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.7274, allocations: 135 kB / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000318/0.7277, allocations: 324.5 kB / 0.9525 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.7279, allocations: 48.84 kB / 0.9525 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.7281, allocations: 132.8 kB / 0.9527 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.7283, allocations: 143.1 kB / 0.9528 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.386e-05/0.7284, allocations: 28.78 kB / 0.9528 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.7285, allocations: 33.97 kB / 0.9529 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.762e-05/0.7286, allocations: 84.72 kB / 0.9529 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.455e-05/0.7287, allocations: 135.5 kB / 0.9531 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.7288, allocations: 224 kB / 0.9533 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.7288, allocations: 0 / 0.9533 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7288, allocations: 4 kB / 0.9533 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.7289, allocations: 1.25 kB / 0.9533 GB, free: 6.422 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.001059/0.7299, allocations: 0.6254 MB / 0.9539 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.73, allocations: 14.16 kB / 0.9539 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.337e-05/0.73, allocations: 28.75 kB / 0.9539 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.194e-05/0.7301, allocations: 207.6 kB / 0.9541 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.7303, allocations: 262.1 kB / 0.9544 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/0.7303, allocations: 30.94 kB / 0.9544 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.7308, allocations: 262.1 kB / 0.9547 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.7308, allocations: 5 kB / 0.9547 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.7309, allocations: 10.22 kB / 0.9547 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.7309, allocations: 5 kB / 0.9547 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003722/0.7312, allocations: 174.3 kB / 0.9549 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008513/0.7321, allocations: 0.785 MB / 0.9556 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.7325, allocations: 205.8 kB / 0.9558 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.7328, allocations: 139.8 kB / 0.956 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.7328, allocations: 6.781 kB / 0.956 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.7333, allocations: 310.4 kB / 0.9563 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/0.7333, allocations: 0 / 0.9563 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0008918/0.7342, allocations: 495.2 kB / 0.9567 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.7343, allocations: 114.5 kB / 0.9568 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.7344, allocations: 180.2 kB / 0.957 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.7344, allocations: 37.17 kB / 0.957 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.7345, allocations: 120.5 kB / 0.9572 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.7346, allocations: 149.3 kB / 0.9573 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.7348, allocations: 106 kB / 0.9574 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.7349, allocations: 340.8 kB / 0.9577 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.7353, allocations: 149.6 kB / 0.9579 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003465/0.7356, allocations: 251.5 kB / 0.9581 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005315/0.7362, allocations: 392.8 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.7362, allocations: 1.375 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007296/0.7369, allocations: 486.5 kB / 0.9589 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.737, allocations: 10.09 kB / 0.959 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.737, allocations: 7.094 kB / 0.959 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.737, allocations: 6.062 kB / 0.959 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.7374, allocations: 105.8 kB / 0.9591 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.7374, allocations: 9.547 kB / 0.9591 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002566/0.7377, allocations: 52.97 kB / 0.9591 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.7377, allocations: 24.5 kB / 0.9592 GB, free: 1.879 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.0001254/0.7378, allocations: 163.4 kB / 0.9593 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/0.7379, allocations: 28.41 kB / 0.9593 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.66e-05/0.7379, allocations: 30.97 kB / 0.9594 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.7379, allocations: 5.781 kB / 0.9594 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.738, allocations: 0.875 kB / 0.9594 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.738, allocations: 4.734 kB / 0.9594 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.7383, allocations: 361.1 kB / 0.9597 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.7383, allocations: 1.156 kB / 0.9597 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004043/0.7387, allocations: 71 kB / 0.9598 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.7387, allocations: 10.73 kB / 0.9598 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.7387, allocations: 12.38 kB / 0.9598 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.7387, allocations: 2.156 kB / 0.9598 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7387, allocations: 1.344 kB / 0.9598 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009536/0.7397, allocations: 0.5824 MB / 0.9604 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.7398, allocations: 105.3 kB / 0.9605 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.7398, allocations: 15.3 kB / 0.9605 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.7401, allocations: 32.34 kB / 0.9605 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.7402, allocations: 39.55 kB / 0.9606 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.7402, allocations: 19.95 kB / 0.9606 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.033e-05/0.7403, allocations: 120.3 kB / 0.9607 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7403, allocations: 1.125 kB / 0.9607 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003152/0.7406, allocations: 82.11 kB / 0.9608 GB, free: 0.7031 MB / 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.0001496/0.7407, allocations: 122 kB / 0.9609 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007018/0.7415, allocations: 416.8 kB / 0.9613 GB, free: 428 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7415, allocations: 0 / 0.9613 GB, free: 428 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003141/0.7418, allocations: 178.5 kB / 0.9615 GB, free: 356 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.7421, allocations: 54.06 kB / 0.9615 GB, free: 320 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.7431, allocations: 0.7144 MB / 0.9622 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.7435, allocations: 0.7619 MB / 0.963 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.7436, allocations: 43.89 kB / 0.963 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.7436, allocations: 0.7188 kB / 0.963 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of Templates: time 0.005823/0.7495, allocations: 3.946 MB / 0.9669 GB, free: 12.97 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches