Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.Utilities.Tests.Piston.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.001849/0.001849, allocations: 108.6 kB / 18.67 MB, free: 3.191 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.00936/0.00936, allocations: 194.6 kB / 21.93 MB, free: 5.594 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.459/1.459, allocations: 225.6 MB / 250.6 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8328/0.8328, allocations: 94.59 MB / 400.4 MB, free: 15.8 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/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(ThermofluidStream.Examples.Utilities.Tests.Piston,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|firstOrder.y|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow|flowResistance3.m_flow|piston2_1.M_left|piston2_1.M_right|piston2_1.l|piston2_1.medium_left.u|piston2_1.medium_right.u|pulse.T_start|pulse.count|steamSink.x",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.Utilities.Tests.Piston") translateModel(ThermofluidStream.Examples.Utilities.Tests.Piston,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|firstOrder.y|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow|flowResistance3.m_flow|piston2_1.M_left|piston2_1.M_right|piston2_1.l|piston2_1.medium_left.u|piston2_1.medium_right.u|pulse.T_start|pulse.count|steamSink.x",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.Utilities.Tests.Piston") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002415/0.002415, allocations: 86.31 kB / 0.5464 GB, free: 42.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1455, allocations: 71.85 MB / 0.6166 GB, free: 8.594 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.5906/0.7361, allocations: 229.8 MB / 0.841 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.05333/0.7894, allocations: 43.52 MB / 0.8835 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004261/0.7937, allocations: 67.62 kB / 0.8836 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.008094/0.8017, allocations: 2.797 MB / 0.8863 GB, free: 8.664 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.8124, allocations: 3.364 MB / 0.8896 GB, free: 5.281 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.02244/0.8348, allocations: 7.938 MB / 0.8974 GB, free: 13.34 MB / 0.6388 GB Notification: Performance of NFFlatten.flatten: time 0.00955/0.8444, allocations: 5.579 MB / 0.9028 GB, free: 7.734 MB / 0.6388 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.8466, allocations: 1.03 MB / 0.9038 GB, free: 6.637 MB / 0.6388 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009534/0.8562, allocations: 3.895 MB / 0.9076 GB, free: 2.707 MB / 0.6388 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004499/0.8607, allocations: 2.448 MB / 0.91 GB, free: 256 kB / 0.6388 GB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.862, allocations: 484 kB / 0.9105 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02309/0.8851, allocations: 9.64 MB / 0.9199 GB, free: 6.129 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.8871, allocations: 0.993 MB / 0.9209 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.004026/0.8911, allocations: 2.249 MB / 0.923 GB, free: 2.875 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02592/0.917, allocations: 11.01 MB / 0.9338 GB, free: 7.832 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.917, allocations: 0 / 0.9338 GB, free: 7.832 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.442e-06/0.917, allocations: 8 kB / 0.9338 GB, free: 7.824 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001677/0.9172, allocations: 0 / 0.9338 GB, free: 7.824 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 878 * Number of variables: 878 Notification: Performance of Generate backend data structure: time 0.01548/0.9327, allocations: 5.424 MB / 0.9391 GB, free: 2.316 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.9327, allocations: 8.031 kB / 0.9391 GB, free: 2.309 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004017/0.9368, allocations: 0.7901 MB / 0.9399 GB, free: 1.516 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.9408, allocations: 1.957 MB / 0.9418 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/0.9411, allocations: 266.8 kB / 0.942 GB, free: 15.24 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007043/0.9418, allocations: 371.7 kB / 0.9424 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/0.952, allocations: 4.316 MB / 0.9466 GB, free: 10.46 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-05/0.9521, allocations: 7.938 kB / 0.9466 GB, free: 10.45 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.9525, allocations: 140 kB / 0.9468 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.9526, allocations: 122.2 kB / 0.9469 GB, free: 10.19 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01009/0.9627, allocations: 3.694 MB / 0.9505 GB, free: 6.488 MB / 0.6856 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.03334/0.996, allocations: 24.13 MB / 0.9741 GB, free: 11.69 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006363/1.002, allocations: 2.686 MB / 0.9767 GB, free: 8.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/1.005, allocations: 1.134 MB / 0.9778 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03675/1.042, allocations: 16.23 MB / 0.9936 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004739/1.046, allocations: 1.549 MB / 0.9951 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=201): time 4.669e-06/1.046, allocations: 0 / 0.9951 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=205): time 0.02291/1.069, allocations: 8.26 MB / 1.003 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/1.069, allocations: 73.41 kB / 1.003 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/1.071, allocations: 1.251 MB / 1.005 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0002243/1.072, allocations: 61.7 kB / 1.005 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001347/1.073, allocations: 1.335 MB / 1.006 GB, free: 8.914 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009012/1.074, allocations: 0.7358 MB / 1.007 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008202/1.075, allocations: 403.4 kB / 1.007 GB, free: 7.77 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.075, allocations: 301.1 kB / 1.007 GB, free: 7.473 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/1.077, allocations: 0.898 MB / 1.008 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002354/1.079, allocations: 1.218 MB / 1.009 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004953/1.084, allocations: 2.296 MB / 1.012 GB, free: 2.844 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/1.084, allocations: 3.938 kB / 1.012 GB, free: 2.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.007414/1.092, allocations: 3.098 MB / 1.015 GB, free: 15.71 MB / 0.7638 GB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/1.092, allocations: 45.73 kB / 1.015 GB, free: 15.66 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/1.092, allocations: 8 kB / 1.015 GB, free: 15.65 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/1.094, allocations: 0.6868 MB / 1.015 GB, free: 14.96 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/1.096, allocations: 403.4 kB / 1.016 GB, free: 14.56 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.11, allocations: 7.584 MB / 1.023 GB, free: 6.781 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/1.113, allocations: 88 kB / 1.023 GB, free: 6.695 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000283/1.113, allocations: 87.97 kB / 1.023 GB, free: 6.609 MB / 0.7638 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 27 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,piston2_1.medium_right.phase,piston2_1.medium_left.phase,$whenCondition1,switch.tanValve1.outlet.state.phase,switch.tanValve.outlet.state.phase,switchConnector1.checkValve1.outlet.state.phase,switchConnector.checkValve1.outlet.state.phase,switchConnector1.checkValve.outlet.state.phase,switchConnector.checkValve.outlet.state.phase,switchConnector1.junctionRFF2_1.junctionMN.fores[2].state_forwards.phase,switchConnector.junctionRFF2_1.junctionMN.fores[2].state_forwards.phase,tanValve1.outlet.state.phase,tanValve.outlet.state.phase,flowResistance3.outlet.state.phase,flowResistance1.outlet.state.phase,flowResistance2.outlet.state.phase,flowResistance.outlet.state.phase,junctionT2_1.junctionN.outlet.state.phase,source.outlet.state.phase,switchConnector1.junctionRFF2_1.junctionMN.fores[1].state_forwards.phase,switchConnector1.junctionRFF2_1.junctionMN.rears[1].state_rearwards.phase,switchConnector.junctionRFF2_1.junctionMN.fores[1].state_forwards.phase,switchConnector.junctionRFF2_1.junctionMN.rears[1].state_rearwards.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,46,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.002295/1.115, allocations: 0.6588 MB / 1.024 GB, free: 5.941 MB / 0.7638 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000622/1.116, allocations: 198.7 kB / 1.024 GB, free: 5.746 MB / 0.7638 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/1.129, allocations: 7.658 MB / 1.032 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.274e-05/1.129, allocations: 11.95 kB / 1.032 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/1.129, allocations: 4 kB / 1.032 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/1.13, allocations: 0.6346 MB / 1.032 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003445/1.131, allocations: 44 kB / 1.032 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/1.132, allocations: 95.91 kB / 1.032 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004181/1.132, allocations: 213.6 kB / 1.033 GB, free: 12.97 MB / 0.7794 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): piston2_1.medium_right.phase = if piston2_1.medium_right.state.h < $cse4.h or piston2_1.medium_right.state.h > $cse5.h or piston2_1.medium_right.p > 2.2064e7 then 1 else 2 2/2 (16): $cse6 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(piston2_1.medium_right.p, piston2_1.medium_right.state.h, piston2_1.medium_right.phase, 0) 3/18 (1): piston2_1.medium_right.d = $cse6.rho 4/19 (1): piston2_1.medium_right.u = piston2_1.medium_right.state.h - piston2_1.medium_right.p / piston2_1.medium_right.d 5/20 (13): $cse4 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(piston2_1.medium_right.p) 6/33 (13): $cse5 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(piston2_1.medium_right.p) Variables: 1: $cse5.cv:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse5.cp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse5.pd:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse5.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse5.vt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse5.pt:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse5.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 8: $cse5.R_s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse5.d:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse5.h:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse5.vp:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse5.T:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse5.dpT:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse4.cp:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse4.d:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse4.pt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse4.vp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse4.h:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse4.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 20: $cse4.R_s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse4.pd:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse4.dpT:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse4.cv:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse4.vt:VARIABLE(protected = true ) type: Real unreplaceable 27: piston2_1.medium_right.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = \"Pa\" nominal = 1e5 ) \"Absolute pressure of medium\" type: Real 28: $cse6.phase:DISCRETE(protected = true ) type: Integer unreplaceable 29: $cse6.rho:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse6.p:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse6.vp:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse6.h:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse6.T:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse6.pd:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse6.R_s:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse6.cv:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse6.cp:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse6.x:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse6.s:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse6.pt:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse6.region:DISCRETE(protected = true ) type: Integer unreplaceable 42: $cse6.dpT:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse6.vt:VARIABLE(protected = true ) type: Real unreplaceable 44: piston2_1.medium_right.state.h:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = \"J/kg\" nominal = 5e5 ) \"Specific enthalpy\" type: Real 45: piston2_1.medium_right.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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9806:5-9807:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001786/1.134, allocations: 0.8381 MB / 1.033 GB, free: 12.04 MB / 0.7794 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Examples.Utilities.Tests.Piston could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 4.944807521009352] Failed to read output from testmodel.py, exit status != 0: 1.1424453469808213 1.438940787 0.23684163700000002 Calling exit ...