Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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=2000,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_ThermofluidStream.Examples.Utilities.Tests.Piston") translateModel(ThermofluidStream.Examples.Utilities.Tests.Piston,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_ThermofluidStream.Examples.Utilities.Tests.Piston") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 110.7 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 186.7 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6797/0.6797, allocations: 91.19 MB / 382.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002711/0.002711, allocations: 79.86 kB / 0.5175 GB, free: 4.098 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2856, allocations: 67.68 MB / 0.5836 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.4777/0.7633, allocations: 226 MB / 0.8043 GB, free: 104 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03698/0.8004, allocations: 43.12 MB / 0.8464 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002743/0.8031, allocations: 67.03 kB / 0.8465 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006363/0.8095, allocations: 2.793 MB / 0.8492 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008532/0.8181, allocations: 3.352 MB / 0.8525 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02056/0.8387, allocations: 7.925 MB / 0.8602 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007089/0.8458, allocations: 5.565 MB / 0.8656 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002577/0.8484, allocations: 1.837 MB / 0.8674 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007079/0.8554, allocations: 3.879 MB / 0.8712 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003338/0.8588, allocations: 2.39 MB / 0.8735 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.8599, allocations: 484 kB / 0.874 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02027/0.8801, allocations: 9.585 MB / 0.8834 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.8815, allocations: 0.9892 MB / 0.8843 GB, free: 4.18 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002713/0.8842, allocations: 2.249 MB / 0.8865 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01983/0.9041, allocations: 10.97 MB / 0.8972 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.9041, allocations: 3.938 kB / 0.8973 GB, free: 6.918 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.273e-06/0.9041, allocations: 0 / 0.8973 GB, free: 6.918 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.871e-05/0.9042, allocations: 0 / 0.8973 GB, free: 6.918 MB / 0.6387 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.01288/0.9171, allocations: 5.287 MB / 0.9024 GB, free: 1.559 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.9171, allocations: 8.031 kB / 0.9024 GB, free: 1.551 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003766/0.9209, allocations: 0.7646 MB / 0.9032 GB, free: 0.7812 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003244/0.9242, allocations: 1.94 MB / 0.9051 GB, free: 14.79 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.9244, allocations: 266.8 kB / 0.9053 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006395/0.925, allocations: 363.8 kB / 0.9057 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008857/0.9339, allocations: 4.32 MB / 0.9099 GB, free: 9.742 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.906e-05/0.934, allocations: 0 / 0.9099 GB, free: 9.742 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.9343, allocations: 144 kB / 0.91 GB, free: 9.602 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.873e-05/0.9344, allocations: 126.1 kB / 0.9101 GB, free: 9.477 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00788/0.9423, allocations: 3.69 MB / 0.9137 GB, free: 5.777 MB / 0.6544 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.02379/0.9661, allocations: 24.08 MB / 0.9373 GB, free: 11 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006007/0.9721, allocations: 2.845 MB / 0.94 GB, free: 8.086 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002214/0.9743, allocations: 1.259 MB / 0.9413 GB, free: 6.824 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03491/1.009, allocations: 16.23 MB / 0.9571 GB, free: 4.688 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005251/1.015, allocations: 1.549 MB / 0.9586 GB, free: 3.129 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=201): time 4.929e-06/1.015, allocations: 0 / 0.9586 GB, free: 3.129 MB / 0.7012 GB Notification: Performance of matching and sorting (n=205): time 0.02041/1.035, allocations: 8.245 MB / 0.9667 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/1.035, allocations: 77.39 kB / 0.9668 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/1.037, allocations: 1.234 MB / 0.968 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001569/1.037, allocations: 65.64 kB / 0.968 GB, free: 9.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009896/1.038, allocations: 1.296 MB / 0.9693 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005595/1.038, allocations: 0.7008 MB / 0.97 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006436/1.039, allocations: 403.4 kB / 0.9704 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.09e-05/1.039, allocations: 301.1 kB / 0.9706 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/1.041, allocations: 0.898 MB / 0.9715 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/1.043, allocations: 1.218 MB / 0.9727 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004065/1.047, allocations: 2.292 MB / 0.9749 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-05/1.047, allocations: 7.938 kB / 0.975 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006415/1.054, allocations: 3.112 MB / 0.978 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/1.054, allocations: 37.7 kB / 0.978 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/1.054, allocations: 8 kB / 0.978 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/1.056, allocations: 0.6913 MB / 0.9787 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/1.058, allocations: 399.5 kB / 0.9791 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/1.071, allocations: 7.579 MB / 0.9865 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/1.072, allocations: 84 kB / 0.9866 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/1.073, allocations: 87.97 kB / 0.9867 GB, free: 5.738 MB / 0.7325 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.001426/1.074, allocations: 0.6712 MB / 0.9873 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004633/1.074, allocations: 185.7 kB / 0.9875 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/1.086, allocations: 7.751 MB / 0.9951 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.96e-05/1.086, allocations: 11.95 kB / 0.9951 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/1.086, allocations: 4 kB / 0.9951 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/1.087, allocations: 0.6174 MB / 0.9957 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/1.087, allocations: 40 kB / 0.9957 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/1.089, allocations: 103.8 kB / 0.9958 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/1.089, allocations: 213.6 kB / 0.996 GB, free: 12.02 MB / 0.7481 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001578/1.09, allocations: 0.8348 MB / 0.9968 GB, free: 11.08 MB / 0.7481 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Examples.Utilities.Tests.Piston could not be translated