Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.516/2.516, allocations: 390.5 MB / 398 MB, free: 10.97 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.001139/0.001139, allocations: 179.2 kB / 491.2 MB, free: 1.598 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.702/1.702, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001011/0.001011, allocations: 91.53 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.137e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3374, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.121/1.458, allocations: 149.9 MB / 1.359 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/1.458, allocations: 75.7 kB / 1.359 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0217/1.48, allocations: 8.652 MB / 1.367 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.513e-06/1.48, allocations: 0 / 1.367 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.04e-05/1.48, allocations: 7.5 kB / 1.367 GB, free: 32.59 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.0009552/1.481, allocations: 0.5995 MB / 1.368 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/1.481, allocations: 18.73 kB / 1.368 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/1.481, allocations: 31.16 kB / 1.368 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/1.481, allocations: 195 kB / 1.368 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/1.482, allocations: 250.8 kB / 1.368 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/1.482, allocations: 23.34 kB / 1.368 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002834/1.482, allocations: 134.5 kB / 1.368 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000334/1.482, allocations: 219.3 kB / 1.369 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/1.482, allocations: 0 / 1.369 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/1.482, allocations: 5.812 kB / 1.369 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/1.482, allocations: 3.844 kB / 1.369 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/1.483, allocations: 0.7549 MB / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/1.484, allocations: 179.2 kB / 1.37 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/1.484, allocations: 108.1 kB / 1.37 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/1.484, allocations: 14.02 kB / 1.37 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003465/1.484, allocations: 272.4 kB / 1.37 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.653e-06/1.484, allocations: 4 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0004834/1.485, allocations: 302.4 kB / 1.37 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/1.485, allocations: 112.8 kB / 1.37 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/1.485, allocations: 154.8 kB / 1.37 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/1.485, allocations: 29.52 kB / 1.371 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/1.485, allocations: 113.4 kB / 1.371 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.708e-05/1.485, allocations: 147.7 kB / 1.371 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/1.485, allocations: 0 / 1.371 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.485, allocations: 347.3 kB / 1.371 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/1.486, allocations: 118.9 kB / 1.371 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/1.486, allocations: 214.8 kB / 1.371 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/1.486, allocations: 136.2 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/1.486, allocations: 3.812 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000489/1.486, allocations: 399.6 kB / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/1.486, allocations: 3.844 kB / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.486, allocations: 7.812 kB / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/1.487, allocations: 7.688 kB / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/1.487, allocations: 99.16 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/1.487, allocations: 7.75 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/1.487, allocations: 59.03 kB / 1.372 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/1.487, allocations: 25.62 kB / 1.372 GB, free: 29.93 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.0001196/1.487, allocations: 133.7 kB / 1.372 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/1.487, allocations: 23.41 kB / 1.372 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.383e-05/1.487, allocations: 30.5 kB / 1.372 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/1.487, allocations: 7.688 kB / 1.372 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/1.487, allocations: 3.938 kB / 1.372 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/1.487, allocations: 2.484 kB / 1.372 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/1.488, allocations: 306.3 kB / 1.373 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/1.488, allocations: 6.719 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/1.488, allocations: 80.81 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/1.488, allocations: 3.844 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/1.488, allocations: 10.7 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/1.488, allocations: 3.969 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.488, allocations: 8 kB / 1.373 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006757/1.489, allocations: 0.5217 MB / 1.373 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/1.489, allocations: 100.5 kB / 1.373 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.621e-05/1.489, allocations: 5.016 kB / 1.373 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/1.489, allocations: 37.58 kB / 1.373 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/1.489, allocations: 45.52 kB / 1.373 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/1.489, allocations: 14.94 kB / 1.373 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.587e-05/1.489, allocations: 119.1 kB / 1.374 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.489, allocations: 0 / 1.374 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003023/1.49, allocations: 64.83 kB / 1.374 GB, free: 29.23 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.0002105/1.49, allocations: 112.8 kB / 1.374 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004273/1.49, allocations: 317.2 kB / 1.374 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.49, allocations: 0 / 1.374 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/1.491, allocations: 154 kB / 1.374 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/1.491, allocations: 27.89 kB / 1.374 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008471/1.492, allocations: 496.6 kB / 1.375 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/1.492, allocations: 0.7738 MB / 1.375 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001615/1.492, allocations: 36.53 kB / 1.375 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.293e-05/1.492, allocations: 33.77 kB / 1.375 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.492, allocations: 192 / 1.375 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of Templates: time 0.005264/1.498, allocations: 2.826 MB / 1.378 GB, free: 28.01 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches