Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.001541/0.001541, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.002112/0.002112, allocations: 191.1 kB / 22.11 MB, free: 5.152 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.531/1.531, 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.341/3.341, allocations: 495.8 MB / 0.783 GB, free: 33.79 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.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation")
translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 68.59 kB / 1.137 GB, free: 33.78 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.5142/0.5163, allocations: 173.6 MB / 1.307 GB, free: 1.785 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.26/0.7763, allocations: 193.1 MB / 1.495 GB, free: 15.96 MB / 1.201 GB
Notification: Performance of NFInst.instExpressions: time 0.01381/0.7901, allocations: 6.941 MB / 1.502 GB, free: 9.008 MB / 1.201 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.7926, allocations: 67.38 kB / 1.502 GB, free: 8.941 MB / 1.201 GB
Notification: Performance of NFTyping.typeComponents: time 0.003091/0.7957, allocations: 0.7025 MB / 1.503 GB, free: 8.234 MB / 1.201 GB
Notification: Performance of NFTyping.typeBindings: time 0.009172/0.8049, allocations: 2.486 MB / 1.505 GB, free: 5.738 MB / 1.201 GB
Notification: Performance of NFTyping.typeClassSections: time 0.004975/0.8099, allocations: 1.494 MB / 1.507 GB, free: 4.262 MB / 1.201 GB
Notification: Performance of NFFlatten.flatten: time 0.006601/0.8165, allocations: 3.029 MB / 1.51 GB, free: 1.227 MB / 1.201 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.002108/0.8186, allocations: 0.7205 MB / 1.51 GB, free: 0.4961 MB / 1.201 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.00573/0.8243, allocations: 1.613 MB / 1.512 GB, free: 14.89 MB / 1.217 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.002267/0.8266, allocations: 0.8489 MB / 1.513 GB, free: 14.04 MB / 1.217 GB
Notification: Performance of NFPackage.collectConstants: time 0.000345/0.8269, allocations: 100 kB / 1.513 GB, free: 13.94 MB / 1.217 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.004809/0.8317, allocations: 1.687 MB / 1.515 GB, free: 12.25 MB / 1.217 GB
Notification: Performance of NFScalarize.scalarize: time 0.0006218/0.8323, allocations: 374.8 kB / 1.515 GB, free: 11.88 MB / 1.217 GB
Notification: Performance of NFVerifyModel.verify: time 0.001084/0.8334, allocations: 0.5869 MB / 1.515 GB, free: 11.29 MB / 1.217 GB
Notification: Performance of NFConvertDAE.convert: time 0.005892/0.8393, allocations: 2.324 MB / 1.518 GB, free: 8.961 MB / 1.217 GB
Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.8393, allocations: 0 / 1.518 GB, free: 8.961 MB / 1.217 GB
Notification: Performance of FrontEnd: time 2.254e-06/0.8393, allocations: 0 / 1.518 GB, free: 8.961 MB / 1.217 GB
Notification: Performance of Transformations before backend: time 2.526e-05/0.8394, allocations: 0 / 1.518 GB, free: 8.961 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: 170
 * Number of variables: 170
Notification: Performance of Generate backend data structure: time 0.004149/0.8435, allocations: 1.602 MB / 1.519 GB, free: 7.316 MB / 1.217 GB
Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.8436, allocations: 8.031 kB / 1.519 GB, free: 7.309 MB / 1.217 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003203/0.8468, allocations: 0.5416 MB / 1.52 GB, free: 6.766 MB / 1.217 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.8494, allocations: 0.9664 MB / 1.521 GB, free: 5.766 MB / 1.217 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/0.8495, allocations: 53.31 kB / 1.521 GB, free: 5.715 MB / 1.217 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.8496, allocations: 68 kB / 1.521 GB, free: 5.648 MB / 1.217 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.8523, allocations: 1.116 MB / 1.522 GB, free: 4.504 MB / 1.217 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.8523, allocations: 3.938 kB / 1.522 GB, free: 4.5 MB / 1.217 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.845e-05/0.8524, allocations: 28 kB / 1.522 GB, free: 4.473 MB / 1.217 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.117e-05/0.8525, allocations: 29.31 kB / 1.522 GB, free: 4.441 MB / 1.217 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.8558, allocations: 1.164 MB / 1.523 GB, free: 3.277 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.006915/0.8627, allocations: 3.11 MB / 1.526 GB, free: 104 kB / 1.217 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.8646, allocations: 0.6489 MB / 1.527 GB, free: 15.44 MB / 1.232 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009257/0.8655, allocations: 394.1 kB / 1.527 GB, free: 15.05 MB / 1.232 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0005367/0.8661, allocations: 128.3 kB / 1.527 GB, free: 14.93 MB / 1.232 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.8672, allocations: 0.5139 MB / 1.528 GB, free: 14.39 MB / 1.232 GB
Notification: Performance of pre-optimization done (n=57): time 1.783e-06/0.8672, allocations: 0 / 1.528 GB, free: 14.39 MB / 1.232 GB
Notification: Performance of matching and sorting (n=57): time 0.0035/0.8707, allocations: 1.229 MB / 1.529 GB, free: 13.15 MB / 1.232 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.8708, allocations: 152.8 kB / 1.529 GB, free: 12.97 MB / 1.232 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.8731, allocations: 1.176 MB / 1.53 GB, free: 11.78 MB / 1.232 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.8733, allocations: 37.7 kB / 1.53 GB, free: 11.73 MB / 1.232 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0004738/0.8737, allocations: 441.8 kB / 1.531 GB, free: 11.3 MB / 1.232 GB
Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.874, allocations: 202.3 kB / 1.531 GB, free: 11.1 MB / 1.232 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003392/0.8743, allocations: 146.2 kB / 1.531 GB, free: 10.95 MB / 1.232 GB
Notification: Performance of setup shared object (initialization): time 0.0001834/0.8745, allocations: 326 kB / 1.531 GB, free: 10.62 MB / 1.232 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.8758, allocations: 445 kB / 1.532 GB, free: 10.19 MB / 1.232 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.8775, allocations: 0.5941 MB / 1.532 GB, free: 9.543 MB / 1.232 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002432/0.8799, allocations: 0.9257 MB / 1.533 GB, free: 8.559 MB / 1.232 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.8799, allocations: 0 / 1.533 GB, free: 8.559 MB / 1.232 GB
Notification: Performance of matching and sorting (n=72) (initialization): time 0.003596/0.8835, allocations: 1.205 MB / 1.535 GB, free: 7.344 MB / 1.232 GB
Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/0.8836, allocations: 41.69 kB / 1.535 GB, free: 7.297 MB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.8836, allocations: 4.281 kB / 1.535 GB, free: 7.293 MB / 1.232 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.8836, allocations: 12 kB / 1.535 GB, free: 7.281 MB / 1.232 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/0.8846, allocations: 187.7 kB / 1.535 GB, free: 7.098 MB / 1.232 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.8846, allocations: 11.88 kB / 1.535 GB, free: 7.086 MB / 1.232 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.8864, allocations: 247.1 kB / 1.535 GB, free: 6.844 MB / 1.232 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.8865, allocations: 31.98 kB / 1.535 GB, free: 6.812 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: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (67):
 * Single equations (assignments): 66
 * Array equations: 0
 * Algorithm blocks: 1
 * 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.000697/0.8872, allocations: 335.2 kB / 1.535 GB, free: 6.469 MB / 1.232 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000282/0.8875, allocations: 123.2 kB / 1.535 GB, free: 6.348 MB / 1.232 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002475/0.89, allocations: 0.996 MB / 1.536 GB, free: 5.34 MB / 1.232 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.89, allocations: 12 kB / 1.536 GB, free: 5.328 MB / 1.232 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.89, allocations: 3.938 kB / 1.536 GB, free: 5.324 MB / 1.232 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.89, allocations: 3.984 kB / 1.536 GB, free: 5.32 MB / 1.232 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005855/0.8959, allocations: 3.133 MB / 1.54 GB, free: 2.039 MB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.8959, allocations: 11.94 kB / 1.54 GB, free: 2.027 MB / 1.232 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/0.8965, allocations: 120.3 kB / 1.54 GB, free: 1.91 MB / 1.232 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.8965, allocations: 8 kB / 1.54 GB, free: 1.902 MB / 1.232 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.485e-05/0.8966, allocations: 27.98 kB / 1.54 GB, free: 1.875 MB / 1.232 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.642e-05/0.8966, allocations: 11.98 kB / 1.54 GB, free: 1.863 MB / 1.232 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/0.8966, allocations: 11.94 kB / 1.54 GB, free: 1.852 MB / 1.232 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.8994, allocations: 1.358 MB / 1.541 GB, free: 384 kB / 1.232 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.000747/0.9001, allocations: 258.9 kB / 1.541 GB, free: 124 kB / 1.232 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.9003, allocations: 20 kB / 1.541 GB, free: 104 kB / 1.232 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.9015, allocations: 107.9 kB / 1.541 GB, free: 15.99 MB / 1.248 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.9016, allocations: 63.64 kB / 1.541 GB, free: 15.93 MB / 1.248 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.223e-05/0.9017, allocations: 35.97 kB / 1.542 GB, free: 15.9 MB / 1.248 GB
Notification: Performance of sorting global known variables: time 0.001738/0.9034, allocations: 0.8482 MB / 1.542 GB, free: 15.04 MB / 1.248 GB
Notification: Performance of sort global known variables: time 1e-07/0.9034, allocations: 7.938 kB / 1.542 GB, free: 15.04 MB / 1.248 GB
Notification: Performance of remove unused functions: time 0.001272/0.9047, allocations: 299.6 kB / 1.543 GB, free: 14.74 MB / 1.248 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 32
 * Number of states: 0 ()
 * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled)
 * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (56):
 * Single equations (assignments): 51
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 4
 * When equations: 0
 * 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.0008423/0.9056, allocations: 344.4 kB / 1.543 GB, free: 14.41 MB / 1.248 GB
Notification: Performance of simCode: created initialization part: time 0.002653/0.9082, allocations: 0.9742 MB / 1.544 GB, free: 13.43 MB / 1.248 GB
Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.9082, allocations: 0 / 1.544 GB, free: 13.43 MB / 1.248 GB
Notification: Performance of simCode: created simulation system equations: time 0.001049/0.9093, allocations: 492.7 kB / 1.544 GB, free: 12.94 MB / 1.248 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/0.9123, allocations: 0.5503 MB / 1.545 GB, free: 12.39 MB / 1.248 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/0.9171, allocations: 2.054 MB / 1.547 GB, free: 10.21 MB / 1.248 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.9185, allocations: 1.069 MB / 1.548 GB, free: 9.109 MB / 1.248 GB
Notification: Performance of simCode: alias equations: time 0.001373/0.9198, allocations: 272 kB / 1.548 GB, free: 8.844 MB / 1.248 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/0.9202, allocations: 79.42 kB / 1.548 GB, free: 8.766 MB / 1.248 GB
Notification: Performance of SimCode: time 1.823e-06/0.9202, allocations: 0 / 1.548 GB, free: 8.766 MB / 1.248 GB
Notification: Performance of Templates: time 0.04573/0.9659, allocations: 22.7 MB / 1.57 GB, free: 2.289 MB / 1.264 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.946778227575123]