Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.001636/0.001636, allocations: 101.8 kB / 18.83 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.00178/0.00178, allocations: 192.9 kB / 22.1 MB, free: 4.625 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.544/1.544, allocations: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.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.188/3.188, allocations: 495.8 MB / 0.783 GB, free: 33.64 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.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData")
translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 65.58 kB / 1.137 GB, free: 33.74 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3417, allocations: 173.6 MB / 1.307 GB, free: 1.879 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2119/0.5536, allocations: 175.8 MB / 1.478 GB, free: 1.426 MB / 1.17 GB
Notification: Performance of NFInst.instExpressions: time 0.01885/0.5725, allocations: 12.97 MB / 1.491 GB, free: 4.418 MB / 1.186 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.5739, allocations: 39.69 kB / 1.491 GB, free: 4.379 MB / 1.186 GB
Notification: Performance of NFTyping.typeComponents: time 0.001447/0.5753, allocations: 484.3 kB / 1.492 GB, free: 3.902 MB / 1.186 GB
Notification: Performance of NFTyping.typeBindings: time 0.003138/0.5784, allocations: 1.052 MB / 1.493 GB, free: 2.848 MB / 1.186 GB
Notification: Performance of NFTyping.typeClassSections: time 0.005412/0.5839, allocations: 1.933 MB / 1.494 GB, free: 0.9219 MB / 1.186 GB
Notification: Performance of NFFlatten.flatten: time 0.003699/0.5876, allocations: 2.54 MB / 1.497 GB, free: 14.37 MB / 1.201 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.002152/0.5897, allocations: 1.292 MB / 1.498 GB, free: 13.02 MB / 1.201 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.004674/0.5944, allocations: 1.632 MB / 1.5 GB, free: 11.41 MB / 1.201 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.5958, allocations: 0.8948 MB / 1.501 GB, free: 10.52 MB / 1.201 GB
Notification: Performance of NFPackage.collectConstants: time 0.0003035/0.5961, allocations: 175.9 kB / 1.501 GB, free: 10.34 MB / 1.201 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.5988, allocations: 1.275 MB / 1.502 GB, free: 9.066 MB / 1.201 GB
Notification: Performance of NFScalarize.scalarize: time 0.0005417/0.5994, allocations: 490.5 kB / 1.503 GB, free: 8.586 MB / 1.201 GB
Notification: Performance of NFVerifyModel.verify: time 0.001063/0.6005, allocations: 0.8825 MB / 1.503 GB, free: 7.699 MB / 1.201 GB
Notification: Performance of NFConvertDAE.convert: time 0.004253/0.6047, allocations: 2.775 MB / 1.506 GB, free: 4.914 MB / 1.201 GB
Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.6047, allocations: 0 / 1.506 GB, free: 4.914 MB / 1.201 GB
Notification: Performance of FrontEnd: time 1.954e-06/0.6047, allocations: 3.938 kB / 1.506 GB, free: 4.91 MB / 1.201 GB
Notification: Performance of Transformations before backend: time 3.676e-05/0.6047, allocations: 0 / 1.506 GB, free: 4.91 MB / 1.201 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 346
 * Number of variables: 346
Notification: Performance of Generate backend data structure: time 0.004009/0.6088, allocations: 2.001 MB / 1.508 GB, free: 2.863 MB / 1.201 GB
Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.6088, allocations: 8.031 kB / 1.508 GB, free: 2.855 MB / 1.201 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002886/0.6117, allocations: 422.5 kB / 1.509 GB, free: 2.441 MB / 1.201 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.6137, allocations: 0.9516 MB / 1.509 GB, free: 1.457 MB / 1.201 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.6139, allocations: 102.7 kB / 1.51 GB, free: 1.355 MB / 1.201 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.6141, allocations: 132 kB / 1.51 GB, free: 1.227 MB / 1.201 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00289/0.617, allocations: 1.528 MB / 1.511 GB, free: 15.62 MB / 1.217 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.617, allocations: 0 / 1.511 GB, free: 15.62 MB / 1.217 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001484/0.6172, allocations: 60 kB / 1.511 GB, free: 15.56 MB / 1.217 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.6172, allocations: 32 kB / 1.511 GB, free: 15.53 MB / 1.217 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.6202, allocations: 1.587 MB / 1.513 GB, free: 13.94 MB / 1.217 GB
Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008086/0.6283, allocations: 5.307 MB / 1.518 GB, free: 8.285 MB / 1.217 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.631, allocations: 1.144 MB / 1.519 GB, free: 7.137 MB / 1.217 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009299/0.632, allocations: 450.4 kB / 1.52 GB, free: 6.695 MB / 1.217 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0006395/0.6326, allocations: 120.8 kB / 1.52 GB, free: 6.578 MB / 1.217 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/0.634, allocations: 0.6879 MB / 1.52 GB, free: 5.871 MB / 1.217 GB
Notification: Performance of pre-optimization done (n=107): time 2.625e-06/0.634, allocations: 0 / 1.52 GB, free: 5.871 MB / 1.217 GB
Notification: Performance of matching and sorting (n=107): time 0.004877/0.6389, allocations: 1.601 MB / 1.522 GB, free: 4.262 MB / 1.217 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.639, allocations: 200.8 kB / 1.522 GB, free: 4.02 MB / 1.217 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.6403, allocations: 0.8998 MB / 1.523 GB, free: 3.098 MB / 1.217 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.6405, allocations: 45.7 kB / 1.523 GB, free: 3.047 MB / 1.217 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0005941/0.6411, allocations: 0.6103 MB / 1.524 GB, free: 2.43 MB / 1.217 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.6414, allocations: 368.9 kB / 1.524 GB, free: 2.066 MB / 1.217 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003791/0.6418, allocations: 210.9 kB / 1.524 GB, free: 1.855 MB / 1.217 GB
Notification: Performance of setup shared object (initialization): time 0.0001775/0.642, allocations: 349.9 kB / 1.524 GB, free: 1.508 MB / 1.217 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008901/0.6429, allocations: 394.4 kB / 1.525 GB, free: 1.121 MB / 1.217 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.644, allocations: 0.5735 MB / 1.525 GB, free: 0.5 MB / 1.217 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.6461, allocations: 0.9566 MB / 1.526 GB, free: 15.5 MB / 1.232 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.6461, allocations: 0 / 1.526 GB, free: 15.5 MB / 1.232 GB
Notification: Performance of matching and sorting (n=133) (initialization): time 0.0031/0.6492, allocations: 1.243 MB / 1.528 GB, free: 14.25 MB / 1.232 GB
Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.6492, allocations: 8 kB / 1.528 GB, free: 14.24 MB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.6492, allocations: 4 kB / 1.528 GB, free: 14.24 MB / 1.232 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007543/0.65, allocations: 92.98 kB / 1.528 GB, free: 14.14 MB / 1.232 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.6513, allocations: 251.7 kB / 1.528 GB, free: 13.9 MB / 1.232 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.6541, allocations: 1.551 MB / 1.529 GB, free: 12.23 MB / 1.232 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.6555, allocations: 139.1 kB / 1.53 GB, free: 12.09 MB / 1.232 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.6556, allocations: 52.03 kB / 1.53 GB, free: 12.04 MB / 1.232 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 14
 * Number of states: 0 ()
 * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (131):
 * Single equations (assignments): 130
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,2)}
Notification: Performance of prepare postOptimizeDAE: time 0.000737/0.6563, allocations: 343.8 kB / 1.53 GB, free: 11.7 MB / 1.232 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.6566, allocations: 127.2 kB / 1.53 GB, free: 11.57 MB / 1.232 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.6601, allocations: 1.437 MB / 1.531 GB, free: 10.12 MB / 1.232 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.6601, allocations: 12 kB / 1.531 GB, free: 10.11 MB / 1.232 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.6601, allocations: 4 kB / 1.531 GB, free: 10.1 MB / 1.232 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.6602, allocations: 11.91 kB / 1.531 GB, free: 10.09 MB / 1.232 GB
Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005753/0.6659, allocations: 2.836 MB / 1.534 GB, free: 7.176 MB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.6659, allocations: 7.938 kB / 1.534 GB, free: 7.168 MB / 1.232 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.667, allocations: 219.7 kB / 1.534 GB, free: 6.953 MB / 1.232 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004813/0.6675, allocations: 68.8 kB / 1.535 GB, free: 6.883 MB / 1.232 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.6676, allocations: 35.97 kB / 1.535 GB, free: 6.848 MB / 1.232 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002267/0.6699, allocations: 1.566 MB / 1.536 GB, free: 5.16 MB / 1.232 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6699, allocations: 64 / 1.536 GB, free: 5.16 MB / 1.232 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.6731, allocations: 1.338 MB / 1.537 GB, free: 3.801 MB / 1.232 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0008464/0.674, allocations: 282.8 kB / 1.538 GB, free: 3.523 MB / 1.232 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.6742, allocations: 31.94 kB / 1.538 GB, free: 3.492 MB / 1.232 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6753, allocations: 76.92 kB / 1.538 GB, free: 3.418 MB / 1.232 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.6755, allocations: 96.77 kB / 1.538 GB, free: 3.324 MB / 1.232 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.6757, allocations: 47.97 kB / 1.538 GB, free: 3.277 MB / 1.232 GB
Notification: Performance of sorting global known variables: time 0.001178/0.6769, allocations: 0.6189 MB / 1.539 GB, free: 2.648 MB / 1.232 GB
Notification: Performance of sort global known variables: time 1.6e-07/0.6769, allocations: 0 / 1.539 GB, free: 2.648 MB / 1.232 GB
Notification: Performance of remove unused functions: time 0.001622/0.6785, allocations: 0.4948 MB / 1.539 GB, free: 2.152 MB / 1.232 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext)
 * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (118):
 * Single equations (assignments): 112
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 5
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,3)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.002571/0.6811, allocations: 0.7159 MB / 1.54 GB, free: 1.621 MB / 1.232 GB
Notification: Performance of simCode: created initialization part: time 0.002819/0.6839, allocations: 1.109 MB / 1.541 GB, free: 0.5 MB / 1.232 GB
Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6839, allocations: 0 / 1.541 GB, free: 0.5 MB / 1.232 GB
Notification: Performance of simCode: created simulation system equations: time 0.001519/0.6854, allocations: 0.629 MB / 1.541 GB, free: 15.86 MB / 1.248 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/0.6883, allocations: 0.5366 MB / 1.542 GB, free: 15.35 MB / 1.248 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005491/0.6938, allocations: 2.376 MB / 1.544 GB, free: 12.94 MB / 1.248 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.695, allocations: 1.205 MB / 1.545 GB, free: 11.7 MB / 1.248 GB
Notification: Performance of simCode: alias equations: time 0.001718/0.6967, allocations: 389.9 kB / 1.546 GB, free: 11.32 MB / 1.248 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004913/0.6972, allocations: 147.3 kB / 1.546 GB, free: 11.18 MB / 1.248 GB
Notification: Performance of SimCode: time 1.192e-06/0.6972, allocations: 0 / 1.546 GB, free: 11.18 MB / 1.248 GB
Notification: Performance of Templates: time 0.04897/0.7461, allocations: 25.52 MB / 1.571 GB, free: 1.977 MB / 1.264 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.499937362037599]