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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.16/2.16, allocations: 387.1 MB / 399.7 MB, free: 9.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009278/0.0009277, allocations: 183.9 kB / 492.3 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008533/0.0008536, allocations: 104.9 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.553e-05/3.556e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3145, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9999/1.314, allocations: 149.7 MB / 1.359 GB, free: 19.01 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/1.315, allocations: 69.09 kB / 1.359 GB, free: 19.01 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02209/1.337, allocations: 8.697 MB / 1.367 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/1.337, allocations: 0 / 1.367 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.3e-05/1.337, allocations: 7.719 kB / 1.367 GB, free: 34.11 MB / 0.8386 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.001017/1.338, allocations: 0.6043 MB / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/1.338, allocations: 10.25 kB / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.745e-05/1.338, allocations: 33.5 kB / 1.368 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/1.338, allocations: 198.7 kB / 1.368 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/1.339, allocations: 261.9 kB / 1.368 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/1.339, allocations: 27.84 kB / 1.368 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/1.339, allocations: 246.3 kB / 1.369 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/1.339, allocations: 6.906 kB / 1.369 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/1.339, allocations: 10.31 kB / 1.369 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/1.339, allocations: 5.406 kB / 1.369 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/1.339, allocations: 146.1 kB / 1.369 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/1.34, allocations: 0.8015 MB / 1.369 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/1.341, allocations: 190.7 kB / 1.37 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/1.341, allocations: 115.2 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/1.341, allocations: 9.594 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003683/1.341, allocations: 289.2 kB / 1.37 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.723e-06/1.341, allocations: 4 kB / 1.37 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005565/1.342, allocations: 328.9 kB / 1.37 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/1.342, allocations: 121.4 kB / 1.37 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/1.342, allocations: 156.7 kB / 1.371 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/1.342, allocations: 42.77 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/1.342, allocations: 125 kB / 1.371 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/1.342, allocations: 142.4 kB / 1.371 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/1.342, allocations: 14.06 kB / 1.371 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001062/1.343, allocations: 346.1 kB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/1.343, allocations: 130 kB / 1.371 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/1.343, allocations: 230.6 kB / 1.372 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/1.343, allocations: 152.4 kB / 1.372 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.343, allocations: 0 / 1.372 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005485/1.344, allocations: 453.5 kB / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/1.344, allocations: 4.781 kB / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/1.344, allocations: 3.969 kB / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/1.344, allocations: 7.719 kB / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/1.344, allocations: 99.34 kB / 1.372 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/1.344, allocations: 10.38 kB / 1.372 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/1.344, allocations: 70.83 kB / 1.372 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/1.344, allocations: 19.25 kB / 1.372 GB, free: 31.4 MB / 0.8386 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 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.345, allocations: 154.9 kB / 1.373 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/1.345, allocations: 30.28 kB / 1.373 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/1.345, allocations: 30.59 kB / 1.373 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/1.345, allocations: 7.75 kB / 1.373 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.345, allocations: 7.984 kB / 1.373 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/1.345, allocations: 2.766 kB / 1.373 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/1.345, allocations: 360 kB / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/1.345, allocations: 0 / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/1.345, allocations: 81.39 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/1.345, allocations: 3.656 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/1.345, allocations: 13.48 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/1.345, allocations: 3.875 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.345, allocations: 0 / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006989/1.346, allocations: 0.555 MB / 1.374 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/1.346, allocations: 103.4 kB / 1.374 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/1.346, allocations: 10.41 kB / 1.374 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/1.347, allocations: 47.48 kB / 1.374 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1.347, allocations: 45.39 kB / 1.374 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/1.347, allocations: 15.27 kB / 1.374 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.48e-05/1.347, allocations: 122.7 kB / 1.374 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.1e-07/1.347, allocations: 3.656 kB / 1.374 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003004/1.347, allocations: 77.33 kB / 1.374 GB, free: 30.68 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002218/1.347, allocations: 127.4 kB / 1.374 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005445/1.348, allocations: 344.7 kB / 1.374 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/1.348, allocations: 192 / 1.374 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002451/1.348, allocations: 166.7 kB / 1.375 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/1.348, allocations: 38.66 kB / 1.375 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009301/1.349, allocations: 0.5081 MB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/1.35, allocations: 0.7701 MB / 1.376 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001568/1.35, allocations: 39.7 kB / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/1.35, allocations: 30.61 kB / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.35, allocations: 0 / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.006242/1.356, allocations: 3.016 MB / 1.379 GB, free: 29.42 MB / 0.8386 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches