Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.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.00123/0.00123, allocations: 110 kB / 18.93 MB, free: 2.945 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.001359/0.001359, allocations: 191.3 kB / 22.23 MB, free: 5.16 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.301/1.301, allocations: 225.6 MB / 251 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 179]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.892/2.892, allocations: 0.4893 GB / 0.7884 GB, free: 33.27 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp")
translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 66.97 kB / 1.145 GB, free: 30.64 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3085, allocations: 174.9 MB / 1.316 GB, free: 9.645 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1931/0.5016, allocations: 177 MB / 1.489 GB, free: 7.941 MB / 1.186 GB
Notification: Performance of NFInst.instExpressions: time 0.02152/0.5231, allocations: 15.94 MB / 1.504 GB, free: 7.945 MB / 1.201 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.5249, allocations: 43.62 kB / 1.505 GB, free: 7.902 MB / 1.201 GB
Notification: Performance of NFTyping.typeComponents: time 0.002023/0.5269, allocations: 0.6363 MB / 1.505 GB, free: 7.262 MB / 1.201 GB
Notification: Performance of NFTyping.typeBindings: time 0.004764/0.5317, allocations: 1.616 MB / 1.507 GB, free: 5.641 MB / 1.201 GB
Notification: Performance of NFTyping.typeClassSections: time 0.004715/0.5364, allocations: 1.733 MB / 1.508 GB, free: 3.918 MB / 1.201 GB
Notification: Performance of NFFlatten.flatten: time 0.0042/0.5406, allocations: 2.914 MB / 1.511 GB, free: 0.9883 MB / 1.201 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.00257/0.5432, allocations: 1.482 MB / 1.513 GB, free: 15.45 MB / 1.217 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.004711/0.5479, allocations: 1.679 MB / 1.514 GB, free: 13.8 MB / 1.217 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0018/0.5497, allocations: 1.056 MB / 1.515 GB, free: 12.74 MB / 1.217 GB
Notification: Performance of NFPackage.collectConstants: time 0.0005516/0.5503, allocations: 200 kB / 1.516 GB, free: 12.54 MB / 1.217 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.003016/0.5533, allocations: 1.392 MB / 1.517 GB, free: 11.15 MB / 1.217 GB
Notification: Performance of NFScalarize.scalarize: time 0.000771/0.554, allocations: 0.5686 MB / 1.517 GB, free: 10.58 MB / 1.217 GB
Notification: Performance of NFVerifyModel.verify: time 0.001584/0.5556, allocations: 1.03 MB / 1.518 GB, free: 9.543 MB / 1.217 GB
Notification: Performance of NFConvertDAE.convert: time 0.004683/0.5603, allocations: 3.036 MB / 1.521 GB, free: 6.496 MB / 1.217 GB
Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.5603, allocations: 3.938 kB / 1.521 GB, free: 6.492 MB / 1.217 GB
Notification: Performance of FrontEnd: time 1.823e-06/0.5603, allocations: 0 / 1.521 GB, free: 6.492 MB / 1.217 GB
Notification: Performance of Transformations before backend: time 2.311e-05/0.5603, allocations: 0 / 1.521 GB, free: 6.492 MB / 1.217 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 410
 * Number of variables: 410
Notification: Performance of Generate backend data structure: time 0.00394/0.5643, allocations: 2.294 MB / 1.524 GB, free: 4.148 MB / 1.217 GB
Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.5643, allocations: 8.031 kB / 1.524 GB, free: 4.141 MB / 1.217 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002851/0.5672, allocations: 474.3 kB / 1.524 GB, free: 3.676 MB / 1.217 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.569, allocations: 1.057 MB / 1.525 GB, free: 2.59 MB / 1.217 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.5691, allocations: 119.2 kB / 1.525 GB, free: 2.473 MB / 1.217 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.5693, allocations: 159.9 kB / 1.525 GB, free: 2.316 MB / 1.217 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00302/0.5723, allocations: 1.784 MB / 1.527 GB, free: 464 kB / 1.217 GB
Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.5724, allocations: 3.938 kB / 1.527 GB, free: 460 kB / 1.217 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.5725, allocations: 72 kB / 1.527 GB, free: 388 kB / 1.217 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.185e-05/0.5726, allocations: 51.98 kB / 1.527 GB, free: 336 kB / 1.217 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002942/0.5755, allocations: 1.768 MB / 1.529 GB, free: 14.55 MB / 1.232 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008134/0.5837, allocations: 6.23 MB / 1.535 GB, free: 7.922 MB / 1.232 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.5861, allocations: 1.254 MB / 1.536 GB, free: 6.664 MB / 1.232 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009369/0.587, allocations: 0.5152 MB / 1.537 GB, free: 6.141 MB / 1.232 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0005416/0.5875, allocations: 140.9 kB / 1.537 GB, free: 6.004 MB / 1.232 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.589, allocations: 0.7972 MB / 1.538 GB, free: 5.191 MB / 1.232 GB
Notification: Performance of pre-optimization done (n=126): time 2.565e-06/0.589, allocations: 0 / 1.538 GB, free: 5.191 MB / 1.232 GB
Notification: Performance of matching and sorting (n=126): time 0.004533/0.5935, allocations: 1.82 MB / 1.54 GB, free: 3.359 MB / 1.232 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5936, allocations: 196.9 kB / 1.54 GB, free: 3.125 MB / 1.232 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.5949, allocations: 0.9872 MB / 1.541 GB, free: 2.121 MB / 1.232 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.595, allocations: 57.64 kB / 1.541 GB, free: 2.059 MB / 1.232 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0005506/0.5955, allocations: 0.6657 MB / 1.541 GB, free: 1.383 MB / 1.232 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0003554/0.5959, allocations: 440.2 kB / 1.542 GB, free: 0.9492 MB / 1.232 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003662/0.5962, allocations: 234.8 kB / 1.542 GB, free: 0.7109 MB / 1.232 GB
Notification: Performance of setup shared object (initialization): time 0.0001609/0.5964, allocations: 349.9 kB / 1.542 GB, free: 372 kB / 1.232 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.5973, allocations: 450.4 kB / 1.543 GB, free: 15.92 MB / 1.248 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.5983, allocations: 0.5942 MB / 1.543 GB, free: 15.29 MB / 1.248 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001939/0.6003, allocations: 1.042 MB / 1.544 GB, free: 14.22 MB / 1.248 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.6003, allocations: 0 / 1.544 GB, free: 14.22 MB / 1.248 GB
Notification: Performance of matching and sorting (n=146) (initialization): time 0.002919/0.6032, allocations: 1.356 MB / 1.546 GB, free: 12.86 MB / 1.248 GB
Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.6032, allocations: 8 kB / 1.546 GB, free: 12.85 MB / 1.248 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.6032, allocations: 3.938 kB / 1.546 GB, free: 12.84 MB / 1.248 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005961/0.6038, allocations: 88.92 kB / 1.546 GB, free: 12.75 MB / 1.248 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.6051, allocations: 295.6 kB / 1.546 GB, free: 12.46 MB / 1.248 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.6075, allocations: 1.546 MB / 1.548 GB, free: 10.8 MB / 1.248 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.6088, allocations: 147.2 kB / 1.548 GB, free: 10.65 MB / 1.248 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.609, allocations: 51.95 kB / 1.548 GB, free: 10.6 MB / 1.248 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 8
 * 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 (144):
 * Single equations (assignments): 143
 * 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.000838/0.6098, allocations: 387.4 kB / 1.548 GB, free: 10.21 MB / 1.248 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004089/0.6102, allocations: 143.1 kB / 1.548 GB, free: 10.07 MB / 1.248 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/0.6138, allocations: 1.602 MB / 1.55 GB, free: 8.457 MB / 1.248 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.6138, allocations: 12 kB / 1.55 GB, free: 8.445 MB / 1.248 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6139, allocations: 0 / 1.55 GB, free: 8.445 MB / 1.248 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.6139, allocations: 7.969 kB / 1.55 GB, free: 8.438 MB / 1.248 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00605/0.6199, allocations: 3.124 MB / 1.553 GB, free: 5.266 MB / 1.248 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.6199, allocations: 0 / 1.553 GB, free: 5.266 MB / 1.248 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.6212, allocations: 271.6 kB / 1.553 GB, free: 5 MB / 1.248 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004269/0.6216, allocations: 72.78 kB / 1.553 GB, free: 4.926 MB / 1.248 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.6217, allocations: 39.97 kB / 1.553 GB, free: 4.887 MB / 1.248 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.6236, allocations: 1.582 MB / 1.555 GB, free: 3.18 MB / 1.248 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.6236, allocations: 80 / 1.555 GB, free: 3.18 MB / 1.248 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/0.6277, allocations: 2.194 MB / 1.557 GB, free: 0.9609 MB / 1.248 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0008287/0.6286, allocations: 314.7 kB / 1.557 GB, free: 0.6523 MB / 1.248 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.6288, allocations: 31.94 kB / 1.557 GB, free: 0.6211 MB / 1.248 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.63, allocations: 89.94 kB / 1.557 GB, free: 0.5352 MB / 1.248 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.6301, allocations: 97.12 kB / 1.557 GB, free: 452 kB / 1.248 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.6303, allocations: 63.95 kB / 1.558 GB, free: 388 kB / 1.248 GB
Notification: Performance of sorting global known variables: time 0.001063/0.6313, allocations: 0.68 MB / 1.558 GB, free: 15.69 MB / 1.264 GB
Notification: Performance of sort global known variables: time 7e-08/0.6313, allocations: 0 / 1.558 GB, free: 15.69 MB / 1.264 GB
Notification: Performance of remove unused functions: time 0.001433/0.6328, allocations: 0.5649 MB / 1.559 GB, free: 15.12 MB / 1.264 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (ori1.mExc,ori2.mExc)
 * 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 (137):
 * Single equations (assignments): 131
 * 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.002209/0.635, allocations: 0.7045 MB / 1.559 GB, free: 14.61 MB / 1.264 GB
Notification: Performance of simCode: created initialization part: time 0.002656/0.6376, allocations: 1.232 MB / 1.561 GB, free: 13.36 MB / 1.264 GB
Notification: Performance of simCode: created event and clocks part: time 4.227e-06/0.6376, allocations: 448 / 1.561 GB, free: 13.36 MB / 1.264 GB
Notification: Performance of simCode: created simulation system equations: time 0.001345/0.639, allocations: 0.7168 MB / 1.561 GB, free: 12.63 MB / 1.264 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.6412, allocations: 0.58 MB / 1.562 GB, free: 12.07 MB / 1.264 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005414/0.6466, allocations: 2.915 MB / 1.565 GB, free: 9.121 MB / 1.264 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.6477, allocations: 1.307 MB / 1.566 GB, free: 7.785 MB / 1.264 GB
Notification: Performance of simCode: alias equations: time 0.00148/0.6491, allocations: 438.8 kB / 1.566 GB, free: 7.352 MB / 1.264 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/0.6496, allocations: 151.4 kB / 1.567 GB, free: 7.203 MB / 1.264 GB
Notification: Performance of SimCode: time 6.92e-07/0.6496, allocations: 4 kB / 1.567 GB, free: 7.199 MB / 1.264 GB
Notification: Performance of Templates: time 0.04605/0.6956, allocations: 27.99 MB / 1.594 GB, free: 11.54 MB / 1.295 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.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: 9.817343421280384]