Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 104.6 kB / 18.84 MB, free: 3.023 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 190.7 kB / 22.1 MB, free: 4.227 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 225.6 MB / 250.8 MB, free: 2.934 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.235/3.235, allocations: 495.8 MB / 0.783 GB, free: 12.32 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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.Reals.Validation.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage")
translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 71.89 kB / 1.137 GB, free: 12.16 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 1.295/1.297, allocations: 173.6 MB / 1.307 GB, free: 33.77 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002325/1.299, allocations: 1.112 MB / 1.308 GB, free: 33.02 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001468/1.301, allocations: 1.105 MB / 1.309 GB, free: 32.2 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/1.301, allocations: 3.188 kB / 1.309 GB, free: 32.2 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 7.224e-05/1.301, allocations: 27.11 kB / 1.309 GB, free: 32.18 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001465/1.301, allocations: 37.72 kB / 1.309 GB, free: 32.15 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000608/1.302, allocations: 152.1 kB / 1.309 GB, free: 32.07 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 0.0003698/1.302, allocations: 324.5 kB / 1.309 GB, free: 31.93 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/1.302, allocations: 45.39 kB / 1.31 GB, free: 31.9 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/1.302, allocations: 134.5 kB / 1.31 GB, free: 31.84 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/1.303, allocations: 154.8 kB / 1.31 GB, free: 31.77 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 5.928e-05/1.303, allocations: 29.5 kB / 1.31 GB, free: 31.77 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 5.207e-05/1.303, allocations: 29.09 kB / 1.31 GB, free: 31.77 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 9.132e-05/1.303, allocations: 82.92 kB / 1.31 GB, free: 31.72 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001467/1.303, allocations: 129.2 kB / 1.31 GB, free: 31.64 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.000356/1.303, allocations: 319 kB / 1.31 GB, free: 31.53 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/1.303, allocations: 0 / 1.31 GB, free: 31.53 MB / 1.061 GB
Notification: Performance of FrontEnd: time 2.134e-06/1.303, allocations: 0 / 1.31 GB, free: 31.53 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 9.759e-06/1.303, allocations: 0 / 1.31 GB, free: 31.53 MB / 1.061 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.001268/1.305, allocations: 0.5607 MB / 1.311 GB, free: 31.13 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.305, allocations: 8.5 kB / 1.311 GB, free: 31.13 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/1.305, allocations: 36.83 kB / 1.311 GB, free: 31.12 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/1.305, allocations: 146.7 kB / 1.311 GB, free: 30.96 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/1.305, allocations: 264.5 kB / 1.311 GB, free: 30.67 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/1.305, allocations: 32.56 kB / 1.311 GB, free: 30.66 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/1.306, allocations: 255.1 kB / 1.312 GB, free: 30.54 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/1.306, allocations: 3.938 kB / 1.312 GB, free: 30.53 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/1.306, allocations: 18.02 kB / 1.312 GB, free: 30.52 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/1.306, allocations: 9.562 kB / 1.312 GB, free: 30.52 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/1.306, allocations: 177.8 kB / 1.312 GB, free: 30.46 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/1.307, allocations: 0.7402 MB / 1.313 GB, free: 29.91 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/1.308, allocations: 197.6 kB / 1.313 GB, free: 29.79 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/1.308, allocations: 129.5 kB / 1.313 GB, free: 29.73 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/1.308, allocations: 17.14 kB / 1.313 GB, free: 29.72 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005291/1.308, allocations: 299 kB / 1.313 GB, free: 29.58 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=48): time 1.563e-06/1.308, allocations: 4 kB / 1.313 GB, free: 29.58 MB / 1.061 GB
Notification: Performance of matching and sorting (n=48): time 0.0009722/1.309, allocations: 497.2 kB / 1.314 GB, free: 29.39 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/1.309, allocations: 118.9 kB / 1.314 GB, free: 29.26 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/1.31, allocations: 181.1 kB / 1.314 GB, free: 29.13 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 3.216e-05/1.31, allocations: 39.89 kB / 1.314 GB, free: 29.09 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 5.939e-05/1.31, allocations: 121 kB / 1.314 GB, free: 28.98 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/1.31, allocations: 157.4 kB / 1.314 GB, free: 28.86 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/1.31, allocations: 104.2 kB / 1.314 GB, free: 28.8 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 7.469e-05/1.31, allocations: 338.9 kB / 1.315 GB, free: 28.47 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/1.31, allocations: 150.5 kB / 1.315 GB, free: 28.43 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/1.311, allocations: 252.4 kB / 1.315 GB, free: 28.26 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005446/1.311, allocations: 398.1 kB / 1.315 GB, free: 28.02 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/1.311, allocations: 2.844 kB / 1.315 GB, free: 28.02 MB / 1.061 GB
Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007668/1.312, allocations: 0.4911 MB / 1.316 GB, free: 27.8 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/1.312, allocations: 9.25 kB / 1.316 GB, free: 27.8 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/1.312, allocations: 6.594 kB / 1.316 GB, free: 27.8 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/1.312, allocations: 5.656 kB / 1.316 GB, free: 27.8 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/1.312, allocations: 100.1 kB / 1.316 GB, free: 27.78 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/1.312, allocations: 5.781 kB / 1.316 GB, free: 27.78 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/1.313, allocations: 53.19 kB / 1.316 GB, free: 27.76 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/1.313, allocations: 19.75 kB / 1.316 GB, free: 27.75 MB / 1.061 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.0001537/1.313, allocations: 168.9 kB / 1.316 GB, free: 27.6 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/1.313, allocations: 32.88 kB / 1.316 GB, free: 27.58 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.305e-05/1.313, allocations: 33.03 kB / 1.316 GB, free: 27.55 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/1.313, allocations: 8.672 kB / 1.316 GB, free: 27.55 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/1.313, allocations: 2.625 kB / 1.316 GB, free: 27.55 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.313, allocations: 0 / 1.316 GB, free: 27.55 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/1.313, allocations: 325.2 kB / 1.317 GB, free: 27.32 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/1.313, allocations: 4.062 kB / 1.317 GB, free: 27.31 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/1.314, allocations: 74.95 kB / 1.317 GB, free: 27.3 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.314, allocations: 6.562 kB / 1.317 GB, free: 27.3 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/1.314, allocations: 12.62 kB / 1.317 GB, free: 27.3 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/1.314, allocations: 3.328 kB / 1.317 GB, free: 27.3 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.314, allocations: 4 kB / 1.317 GB, free: 27.29 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009522/1.315, allocations: 0.5819 MB / 1.317 GB, free: 27.03 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.901e-05/1.315, allocations: 28.66 kB / 1.317 GB, free: 27.01 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.925e-05/1.315, allocations: 25.25 kB / 1.317 GB, free: 26.99 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/1.315, allocations: 27.66 kB / 1.317 GB, free: 26.98 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/1.315, allocations: 58.66 kB / 1.317 GB, free: 26.97 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/1.315, allocations: 14.73 kB / 1.317 GB, free: 26.97 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 7.166e-05/1.315, allocations: 124.1 kB / 1.318 GB, free: 26.88 MB / 1.061 GB
Notification: Performance of sort global known variables: time 7e-08/1.315, allocations: 0 / 1.318 GB, free: 26.88 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0003283/1.315, allocations: 79.05 kB / 1.318 GB, free: 26.87 MB / 1.061 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.0001534/1.316, allocations: 121.5 kB / 1.318 GB, free: 26.76 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.000655/1.316, allocations: 361.6 kB / 1.318 GB, free: 26.66 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.316, allocations: 0 / 1.318 GB, free: 26.66 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0003311/1.317, allocations: 182.8 kB / 1.318 GB, free: 26.6 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/1.317, allocations: 50.58 kB / 1.318 GB, free: 26.58 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/1.318, allocations: 0.6254 MB / 1.319 GB, free: 26.18 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/1.318, allocations: 0.7599 MB / 1.32 GB, free: 25.49 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 0.0001405/1.318, allocations: 41.73 kB / 1.32 GB, free: 25.47 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/1.318, allocations: 42.92 kB / 1.32 GB, free: 25.46 MB / 1.061 GB
Notification: Performance of SimCode: time 8.31e-07/1.318, allocations: 0 / 1.32 GB, free: 25.46 MB / 1.061 GB
Notification: Performance of Templates: time 0.007975/1.326, allocations: 4.134 MB / 1.324 GB, free: 25.18 MB / 1.061 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 10.52122079860419]