Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.Piston.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.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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.Piston") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008788/0.0008789, allocations: 167.8 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.251/1.251, allocations: 205 MB / 221.9 MB, free: 9.137 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.0006847/0.0006848, allocations: 89.19 kB / 269.9 MB, free: 8.672 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.6142/0.6142, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002758, allocations: 8 kB / 484.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2495, allocations: 65.81 MB / 0.5378 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.3815/0.631, allocations: 224.2 MB / 0.7567 GB, free: 428 kB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.03645/0.6675, allocations: 43.72 MB / 0.7994 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002955/0.6704, allocations: 40.53 kB / 0.7994 GB, free: 10.35 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.006487/0.6769, allocations: 2.556 MB / 0.8019 GB, free: 8.281 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.008108/0.6851, allocations: 2.971 MB / 0.8048 GB, free: 5.621 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.01864/0.7037, allocations: 6.589 MB / 0.8113 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.006303/0.7101, allocations: 6.216 MB / 0.8173 GB, free: 8.797 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.7119, allocations: 1.65 MB / 0.819 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005605/0.7176, allocations: 3.212 MB / 0.8221 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002131/0.7197, allocations: 1.867 MB / 0.8239 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.72, allocations: 120 kB / 0.824 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01718/0.7372, allocations: 9.233 MB / 0.833 GB, free: 8.594 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0006642/0.7379, allocations: 0.556 MB / 0.8336 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.001902/0.7398, allocations: 1.703 MB / 0.8353 GB, free: 6.324 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0178/0.7576, allocations: 10.25 MB / 0.8453 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.7576, allocations: 0 / 0.8453 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.685e-06/0.7576, allocations: 0 / 0.8453 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001775/0.7578, allocations: 0 / 0.8453 GB, free: 12.05 MB / 0.5573 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.01134/0.7692, allocations: 4.343 MB / 0.8495 GB, free: 7.633 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.7692, allocations: 12.03 kB / 0.8495 GB, free: 7.621 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00363/0.7729, allocations: 0.7348 MB / 0.8502 GB, free: 6.883 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.7752, allocations: 1.531 MB / 0.8517 GB, free: 5.309 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.7754, allocations: 258.8 kB / 0.852 GB, free: 5.055 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005457/0.776, allocations: 363.8 kB / 0.8523 GB, free: 4.699 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007945/0.7839, allocations: 4.365 MB / 0.8566 GB, free: 240 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.234e-05/0.784, allocations: 7.938 kB / 0.8566 GB, free: 232 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/0.7843, allocations: 140 kB / 0.8567 GB, free: 92 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.7844, allocations: 126.3 kB / 0.8568 GB, free: 15.96 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007514/0.7919, allocations: 3.752 MB / 0.8605 GB, free: 12.2 MB / 0.573 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.02103/0.813, allocations: 24.15 MB / 0.8841 GB, free: 1.312 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005532/0.8185, allocations: 2.901 MB / 0.8869 GB, free: 14.33 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/0.8206, allocations: 1.279 MB / 0.8882 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001492/0.8221, allocations: 0.8646 MB / 0.889 GB, free: 12.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003651/0.8258, allocations: 1.6 MB / 0.8906 GB, free: 10.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=204): time 4.499e-06/0.8258, allocations: 0 / 0.8906 GB, free: 10.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=208): time 0.01947/0.8453, allocations: 8.489 MB / 0.8989 GB, free: 1.805 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.8453, allocations: 77.41 kB / 0.8989 GB, free: 1.715 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.8464, allocations: 0.8752 MB / 0.8998 GB, free: 0.8164 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.8465, allocations: 61.7 kB / 0.8999 GB, free: 0.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.8473, allocations: 1.173 MB / 0.901 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004818/0.8477, allocations: 0.7047 MB / 0.9017 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.8479, allocations: 36 kB / 0.9017 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.848, allocations: 377.9 kB / 0.9021 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001719/0.8497, allocations: 0.9331 MB / 0.903 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/0.8517, allocations: 1.241 MB / 0.9042 GB, free: 12.14 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003934/0.8556, allocations: 2.335 MB / 0.9065 GB, free: 9.699 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.8556, allocations: 0 / 0.9065 GB, free: 9.699 MB / 0.6198 GB Notification: Performance of matching and sorting (n=255) (initialization): time 0.006123/0.8617, allocations: 3.148 MB / 0.9096 GB, free: 6.523 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.8618, allocations: 45.67 kB / 0.9096 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.8618, allocations: 8 kB / 0.9096 GB, free: 6.465 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.8639, allocations: 0.7101 MB / 0.9103 GB, free: 5.746 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.8656, allocations: 399.5 kB / 0.9107 GB, free: 5.355 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2061/1.072, allocations: 7.291 MB / 0.9178 GB, free: 246.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002196/1.074, allocations: 310.3 kB / 0.9181 GB, free: 246.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/1.074, allocations: 91.16 kB / 0.9182 GB, free: 246.4 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition1,piston2_1.medium_left.phase,piston2_1.medium_right.phase,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,switch.inlet.state.phase,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,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 (197): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.001241/1.075, allocations: 0.6466 MB / 0.9188 GB, free: 246.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003213/1.076, allocations: 150.9 kB / 0.919 GB, free: 246.3 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/1.087, allocations: 7.659 MB / 0.9265 GB, free: 243 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.482e-05/1.087, allocations: 16.97 kB / 0.9265 GB, free: 243 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/1.087, allocations: 0.8906 kB / 0.9265 GB, free: 243 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009702/1.088, allocations: 0.5744 MB / 0.927 GB, free: 242.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/1.088, allocations: 47.95 kB / 0.9271 GB, free: 242.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.09, allocations: 323.2 kB / 0.9274 GB, free: 242.6 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000385/1.09, allocations: 212 kB / 0.9276 GB, free: 242.6 MB / 0.6198 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): 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 > 22064000.0 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.R:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse5.cv:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse5.h:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse5.vp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse5.dpT:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse5.pt:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse5.d:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse5.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse5.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse5.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 11: $cse5.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse5.vt:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse5.pd:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse4.pt:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse4.h:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse4.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 19: $cse4.cp:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse4.R:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse4.vt:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse4.vp:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse4.d:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse4.dpT:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse4.cv:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse4.pd:VARIABLE(protected = true ) type: Real unreplaceable 27: piston2_1.medium_right.p:VARIABLE(flow=false min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real 28: $cse6.dpT:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse6.region:DISCRETE(protected = true ) type: Integer unreplaceable 30: $cse6.h:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse6.cp:VARIABLE(protected = true ) type: Real unreplaceable 32: piston2_1.medium_right.state.h:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific enthalpy" type: Real 33: $cse6.s:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse6.cv:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse6.pd:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse6.vt:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse6.R:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse6.phase:DISCRETE(protected = true ) type: Integer unreplaceable 39: $cse6.T:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse6.rho:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse6.x:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse6.p:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse6.vp:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse6.pt:VARIABLE(protected = true ) type: Real unreplaceable 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:9746:5-9747:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001396/1.092, allocations: 0.8526 MB / 0.9284 GB, free: 242 MB / 0.6198 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.