Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-07,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_out|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_out|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_out|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_out|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_out|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_out|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_out|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_out|heatportVolume9.M|heatportVolume9.U_med|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") translateModel(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-07,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_out|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_out|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_out|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_out|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_out|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_out|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_out|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_out|heatportVolume9.M|heatportVolume9.U_med|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000914/0.0009141, allocations: 171.9 kB / 16.11 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.222/1.222, allocations: 205 MB / 221.9 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007351/0.0007351, allocations: 89.61 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6124/0.6124, allocations: 90.5 MB / 408.3 MB, free: 3.945 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002744, allocations: 8 kB / 484.9 MB, free: 7.203 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.237, allocations: 65.8 MB / 0.5378 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling): time 0.104/0.3411, allocations: 141.7 MB / 0.6761 GB, free: 8.887 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.2657/0.6069, allocations: 48.86 MB / 0.7238 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003723/0.6106, allocations: 41.97 kB / 0.7238 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.004598/0.6152, allocations: 1.714 MB / 0.7255 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.008522/0.6238, allocations: 3.181 MB / 0.7286 GB, free: 484 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.02531/0.6491, allocations: 10.24 MB / 0.7386 GB, free: 176 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.01027/0.6594, allocations: 8.645 MB / 0.7471 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001038/0.6604, allocations: 0.5434 MB / 0.7476 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03342/0.6939, allocations: 18.67 MB / 0.7658 GB, free: 6.074 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.08724/0.7811, allocations: 50.84 MB / 0.8155 GB, free: 7.297 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.7823, allocations: 140 kB / 0.8156 GB, free: 7.16 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01759/0.7999, allocations: 8.379 MB / 0.8238 GB, free: 14.85 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.801, allocations: 0.6172 MB / 0.8244 GB, free: 14.26 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002693/0.8037, allocations: 1.742 MB / 0.8261 GB, free: 12.54 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01661/0.8204, allocations: 8.562 MB / 0.8345 GB, free: 4.422 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.8204, allocations: 0 / 0.8345 GB, free: 4.422 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8204, allocations: 0 / 0.8345 GB, free: 4.422 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.868e-05/0.8205, allocations: 0 / 0.8345 GB, free: 4.422 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 794 * Number of variables: 794 Notification: Performance of Generate backend data structure: time 0.007449/0.8279, allocations: 3.801 MB / 0.8382 GB, free: 0.5977 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.043e-05/0.828, allocations: 12.03 kB / 0.8382 GB, free: 0.5859 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00766/0.8357, allocations: 1.148 MB / 0.8393 GB, free: 15.43 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.8379, allocations: 1.525 MB / 0.8408 GB, free: 13.88 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.8381, allocations: 266.5 kB / 0.841 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004014/0.8385, allocations: 343.6 kB / 0.8414 GB, free: 13.28 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.8541, allocations: 5.041 MB / 0.8463 GB, free: 7.98 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.8542, allocations: 15.88 kB / 0.8463 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002878/0.8545, allocations: 144 kB / 0.8464 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.543e-05/0.8546, allocations: 80 kB / 0.8465 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009451/0.864, allocations: 3.9 MB / 0.8503 GB, free: 3.855 MB / 0.5886 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.01971/0.8837, allocations: 21.65 MB / 0.8715 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008589/0.8923, allocations: 3.345 MB / 0.8747 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002437/0.8948, allocations: 1.315 MB / 0.876 GB, free: 7.672 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001125/0.8959, allocations: 0.8083 MB / 0.8768 GB, free: 6.746 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.857e-05/0.896, allocations: 90.78 kB / 0.8769 GB, free: 6.648 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=267): time 4.509e-06/0.896, allocations: 0 / 0.8769 GB, free: 6.648 MB / 0.6198 GB Notification: Performance of matching and sorting (n=282): time 0.0389/0.9349, allocations: 14.97 MB / 0.8915 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.9351, allocations: 311.2 kB / 0.8918 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.9366, allocations: 1.437 MB / 0.8932 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0003751/0.937, allocations: 85.7 kB / 0.8933 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008119/0.9378, allocations: 1.309 MB / 0.8946 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007573/0.9386, allocations: 0.9814 MB / 0.8955 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.9387, allocations: 68 kB / 0.8956 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002182/0.939, allocations: 441.5 kB / 0.896 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/0.9416, allocations: 1.221 MB / 0.8972 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/0.9448, allocations: 2.214 MB / 0.8994 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005968/0.9507, allocations: 3.601 MB / 0.9029 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.9508, allocations: 8 kB / 0.9029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.0105/0.9613, allocations: 4.87 MB / 0.9077 GB, free: 5.477 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.9613, allocations: 23.94 kB / 0.9077 GB, free: 5.453 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.9614, allocations: 28 kB / 0.9077 GB, free: 5.426 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004733/0.9661, allocations: 1.303 MB / 0.909 GB, free: 4.039 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.9684, allocations: 0.6904 MB / 0.9097 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.215/1.183, allocations: 23.09 MB / 0.9322 GB, free: 287.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/1.187, allocations: 411.5 kB / 0.9326 GB, free: 287.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003361/1.187, allocations: 180.6 kB / 0.9328 GB, free: 287.4 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 24 (heatportVolume1.inlet.state.phase,heatportVolume1.medium.phase,heatportVolume7.medium.phase,heatportVolume8.medium.phase,heatportVolume9.medium.phase,heatportVolume10.inlet.state.phase,heatportVolume10.medium.phase,heatportVolume11.medium.phase,heatportVolume12.medium.phase,heatportVolume13.medium.phase,heatportVolume14.medium.phase,heatportVolume5.medium.phase,heatportVolume6.medium.phase,heatportVolume3.medium.phase,heatportVolume4.medium.phase,heatportVolume2.medium.phase,heatportVolume14.state_in.phase,heatportVolume12.state_in.phase,heatportVolume11.state_in.phase,heatportVolume8.state_in.phase,heatportVolume7.state_in.phase,heatportVolume5.state_in.phase,heatportVolume3.state_in.phase,heatportVolume2.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (396): * Single equations (assignments): 367 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 27 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 17 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,5), (2,4), (2,3), (2,3), (2,4), (2,3), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001509/1.189, allocations: 0.5688 MB / 0.9333 GB, free: 287.3 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009043/1.19, allocations: 261.9 kB / 0.9336 GB, free: 287.3 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01847/1.208, allocations: 13.38 MB / 0.9466 GB, free: 282.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.617e-05/1.208, allocations: 17.55 kB / 0.9467 GB, free: 282.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.208, allocations: 3.125 kB / 0.9467 GB, free: 282.9 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008764/1.209, allocations: 0.5322 MB / 0.9472 GB, free: 282.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003645/1.209, allocations: 68.02 kB / 0.9472 GB, free: 282.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/1.214, allocations: 0.5057 MB / 0.9477 GB, free: 282.6 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/1.214, allocations: 264.7 kB / 0.948 GB, free: 282.5 MB / 0.6667 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): heatportVolume14.medium.phase = if heatportVolume14.medium.state.h < $cse40.h or heatportVolume14.medium.state.h > $cse41.h or heatportVolume14.medium.state.p > 22064000.0 then 1 else 2 2/2 (16): $cse42 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(heatportVolume14.medium.state.p, heatportVolume14.medium.state.h, heatportVolume14.medium.phase, 0) 3/18 (1): heatportVolume14.medium.d = $cse42.rho 4/19 (1): heatportVolume14.medium.u = heatportVolume14.medium.state.h - heatportVolume14.medium.state.p / heatportVolume14.medium.d Variables: 1: heatportVolume14.medium.d:DUMMY_STATE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) "Density of medium" type: Real 2: $cse42.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse42.rho:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse42.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse42.x:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse42.dpT:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse42.cp:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse42.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse42.R:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse42.pt:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse42.cv:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse42.phase:DISCRETE(protected = true ) type: Integer unreplaceable 13: heatportVolume14.medium.state.h:DUMMY_STATE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 stateSelect=StateSelect.never ) "Specific enthalpy" type: Real 14: $cse42.pd:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse42.p:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse42.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse42.vt:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse42.h:VARIABLE(protected = true ) type: Real unreplaceable 19: heatportVolume14.medium.phase:DISCRETE(min = 0 max = 2 start = 1 fixed = false ) "2 for two-phase, 1 for one-phase, 0 if not known" type: Integer [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9746:5-9747:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007899/1.215, allocations: 330.2 kB / 0.9483 GB, free: 282.3 MB / 0.6667 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.