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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001111/0.001111, allocations: 97.78 kB / 16.02 MB, free: 76 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.001508/0.001508, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000515/0.000515, allocations: 8 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7349/0.7354, allocations: 142.4 MB / 0.9557 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.001179/0.7366, allocations: 0.8017 MB / 0.9565 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.7379, allocations: 1.1 MB / 0.9576 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/0.738, allocations: 2.344 kB / 0.9576 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.043e-05/0.738, allocations: 7.875 kB / 0.9576 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.7381, allocations: 36.05 kB / 0.9576 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.7385, allocations: 138.5 kB / 0.9578 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.7388, allocations: 313.7 kB / 0.9581 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.739, allocations: 43.55 kB / 0.9581 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.7391, allocations: 106.6 kB / 0.9582 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.7393, allocations: 137.4 kB / 0.9583 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.7393, allocations: 19.34 kB / 0.9584 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.7394, allocations: 14.81 kB / 0.9584 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.394e-05/0.7394, allocations: 59.02 kB / 0.9584 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.7396, allocations: 153.4 kB / 0.9586 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.7398, allocations: 212.7 kB / 0.9588 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.7398, allocations: 1.25 kB / 0.9588 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.365e-06/0.7398, allocations: 0 / 0.9588 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.7398, allocations: 0 / 0.9588 GB, free: 5.352 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.001063/0.7409, allocations: 0.607 MB / 0.9594 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.7409, allocations: 8.844 kB / 0.9594 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.43e-05/0.741, allocations: 34.62 kB / 0.9594 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.7411, allocations: 203.8 kB / 0.9596 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.7413, allocations: 264.8 kB / 0.9599 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.7413, allocations: 36 kB / 0.9599 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004456/0.7418, allocations: 257.9 kB / 0.9601 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.7418, allocations: 5.312 kB / 0.9601 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.7418, allocations: 14.75 kB / 0.9602 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.7419, allocations: 5.5 kB / 0.9602 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004278/0.7423, allocations: 193.6 kB / 0.9603 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000898/0.7432, allocations: 0.7959 MB / 0.9611 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.7437, allocations: 208.1 kB / 0.9613 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.7439, allocations: 144.8 kB / 0.9615 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.744, allocations: 10.58 kB / 0.9615 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005203/0.7445, allocations: 314.9 kB / 0.9618 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/0.7445, allocations: 0 / 0.9618 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001064/0.7456, allocations: 0.4961 MB / 0.9623 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.7456, allocations: 115 kB / 0.9624 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.7458, allocations: 177 kB / 0.9625 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.7458, allocations: 37.36 kB / 0.9626 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.7459, allocations: 124.8 kB / 0.9627 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.746, allocations: 148 kB / 0.9628 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-05/0.7461, allocations: 58.44 kB / 0.9629 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.913e-05/0.7462, allocations: 345 kB / 0.9632 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.7465, allocations: 151.1 kB / 0.9634 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.7468, allocations: 264.9 kB / 0.9636 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006067/0.7474, allocations: 400.9 kB / 0.964 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.7475, allocations: 1.281 kB / 0.964 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008208/0.7483, allocations: 0.5018 MB / 0.9645 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.7483, allocations: 14.53 kB / 0.9645 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.7483, allocations: 3.188 kB / 0.9645 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.7484, allocations: 4.531 kB / 0.9645 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003777/0.7487, allocations: 105.4 kB / 0.9646 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.7488, allocations: 4.844 kB / 0.9646 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.749, allocations: 64.91 kB / 0.9647 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.7491, allocations: 28.2 kB / 0.9647 GB, free: 0.832 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.0001367/0.7492, allocations: 155.6 kB / 0.9649 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.7493, allocations: 29.31 kB / 0.9649 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.777e-05/0.7494, allocations: 34.14 kB / 0.9649 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.7494, allocations: 4.781 kB / 0.9649 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.7494, allocations: 1.531 kB / 0.9649 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.7494, allocations: 0.875 kB / 0.9649 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.7497, allocations: 356.8 kB / 0.9653 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.7497, allocations: 4.875 kB / 0.9653 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.7501, allocations: 82.36 kB / 0.9653 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.7501, allocations: 6.125 kB / 0.9653 GB, free: 288 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.82e-05/0.7502, allocations: 13.55 kB / 0.9654 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.7502, allocations: 2.812 kB / 0.9654 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.7502, allocations: 0 / 0.9654 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.7513, allocations: 0.6032 MB / 0.966 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.527e-05/0.7514, allocations: 105.3 kB / 0.9661 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.7514, allocations: 15.94 kB / 0.9661 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.7517, allocations: 42.17 kB / 0.9661 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.7518, allocations: 40.83 kB / 0.9661 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.7518, allocations: 18.55 kB / 0.9662 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001072/0.752, allocations: 121.8 kB / 0.9663 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.752, allocations: 0 / 0.9663 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003267/0.7523, allocations: 78.88 kB / 0.9664 GB, free: 15.66 MB / 0.7325 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.0002012/0.7525, allocations: 125.8 kB / 0.9665 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008122/0.7533, allocations: 400.4 kB / 0.9669 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7533, allocations: 0 / 0.9669 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.7537, allocations: 191.9 kB / 0.967 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.7541, allocations: 44.72 kB / 0.9671 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.7553, allocations: 0.7523 MB / 0.9678 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.7557, allocations: 0.7654 MB / 0.9686 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.7559, allocations: 35.08 kB / 0.9686 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.7559, allocations: 0 / 0.9686 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of Templates: time 0.006738/0.7626, allocations: 3.917 MB / 0.9724 GB, free: 11.94 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