Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 81.67 kB / 19.27 MB, free: 0.6055 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 162 kB / 22.57 MB, free: 1.953 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.065/1.065, allocations: 177.1 MB / 202.9 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8777/0.8777, allocations: 116 MB / 375.4 MB, free: 4.156 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_ClausiusRankine_Step9VaporQualityInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_ClausiusRankine_Step9VaporQualityInversion",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 0.5535 GB, free: 13.21 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.946e-05, allocations: 4.844 kB / 0.5535 GB, free: 13.21 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion): time 0.04858/0.04861, allocations: 65.7 MB / 0.6177 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.3827/0.4314, allocations: 27.43 MB / 0.6444 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002661/0.434, allocations: 54.88 kB / 0.6445 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.4364, allocations: 0.692 MB / 0.6452 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.02694/0.4633, allocations: 7.792 MB / 0.6528 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006549/0.4699, allocations: 2.091 MB / 0.6548 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.00454/0.4744, allocations: 2.196 MB / 0.657 GB, free: 9.328 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000498/0.4749, allocations: 240.9 kB / 0.6572 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01581/0.4907, allocations: 9.176 MB / 0.6662 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.4925, allocations: 0.5685 MB / 0.6667 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.4927, allocations: 93.62 kB / 0.6668 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02855/0.5212, allocations: 10.78 MB / 0.6773 GB, free: 6.48 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0009733/0.5222, allocations: 262.5 kB / 0.6776 GB, free: 6.406 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001986/0.5242, allocations: 0.4895 MB / 0.6781 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.03039/0.5546, allocations: 9.863 MB / 0.6877 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 1.138e-05/0.5546, allocations: 5.906 kB / 0.6877 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.907e-06/0.5546, allocations: 0 / 0.6877 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.318e-05/0.5546, allocations: 0 / 0.6877 GB, free: 3.246 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: 304 * Number of variables: 304 Notification: Performance of Generate backend data structure: time 0.008669/0.5633, allocations: 2.733 MB / 0.6904 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.5634, allocations: 8.406 kB / 0.6904 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.5635, allocations: 181.3 kB / 0.6906 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.5646, allocations: 369.5 kB / 0.6909 GB, free: 1.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.5661, allocations: 0.8609 MB / 0.6917 GB, free: 0.9922 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.5663, allocations: 200.3 kB / 0.6919 GB, free: 0.8594 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.5664, allocations: 118.4 kB / 0.6921 GB, free: 0.8594 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.5682, allocations: 1.483 MB / 0.6935 GB, free: 188 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.5682, allocations: 6.953 kB / 0.6935 GB, free: 188 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.5683, allocations: 47.81 kB / 0.6936 GB, free: 188 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.114e-05/0.5684, allocations: 32.34 kB / 0.6936 GB, free: 188 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.5699, allocations: 1.017 MB / 0.6946 GB, free: 4 kB / 0.5573 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.005912/0.5758, allocations: 5.017 MB / 0.6995 GB, free: 12.58 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.5771, allocations: 0.8342 MB / 0.7003 GB, free: 12.14 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004127/0.5775, allocations: 373.2 kB / 0.7006 GB, free: 11.97 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07004/0.6476, allocations: 36.5 MB / 0.7363 GB, free: 13.62 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/0.6476, allocations: 39.56 kB / 0.7363 GB, free: 13.57 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=85): time 2.805e-06/0.6476, allocations: 0 / 0.7363 GB, free: 13.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=85): time 0.003129/0.6507, allocations: 1.398 MB / 0.7377 GB, free: 12.19 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.6508, allocations: 89.3 kB / 0.7378 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008464/0.6516, allocations: 0.8903 MB / 0.7386 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.6517, allocations: 41.7 kB / 0.7387 GB, free: 11.13 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004974/0.6522, allocations: 0.6202 MB / 0.7393 GB, free: 10.51 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.6525, allocations: 308.9 kB / 0.7396 GB, free: 10.21 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.6527, allocations: 186.5 kB / 0.7398 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.6528, allocations: 341.9 kB / 0.7401 GB, free: 9.684 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.6532, allocations: 253.9 kB / 0.7403 GB, free: 9.434 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.6539, allocations: 0.5723 MB / 0.7409 GB, free: 8.727 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008999/0.6548, allocations: 0.864 MB / 0.7417 GB, free: 7.773 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6548, allocations: 4 kB / 0.7417 GB, free: 7.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001202/0.656, allocations: 1.013 MB / 0.7427 GB, free: 6.801 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.656, allocations: 8 kB / 0.7427 GB, free: 6.793 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.656, allocations: 11 kB / 0.7427 GB, free: 6.785 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005949/0.6566, allocations: 141 kB / 0.7429 GB, free: 6.645 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004524/0.6571, allocations: 223.3 kB / 0.7431 GB, free: 6.441 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009479/0.658, allocations: 1.721 MB / 0.7448 GB, free: 4.652 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006399/0.6587, allocations: 127 kB / 0.7449 GB, free: 4.527 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.6587, allocations: 44 kB / 0.7449 GB, free: 4.484 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 7 (superheater.outlet.state.phase,loopBreaker.outlet.state.phase,turbine.outlet.state.phase,condenser.outlet.state.phase,preheater.outlet.state.phase,boiler.outlet.state.phase,pump.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004404/0.6592, allocations: 265.6 kB / 0.7452 GB, free: 4.23 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.6593, allocations: 127.1 kB / 0.7453 GB, free: 4.105 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003002/0.6623, allocations: 3.09 MB / 0.7483 GB, free: 1.031 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.6623, allocations: 36.83 kB / 0.7484 GB, free: 0.9961 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.6623, allocations: 0 / 0.7484 GB, free: 0.9961 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.6623, allocations: 7.969 kB / 0.7484 GB, free: 0.9883 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004168/0.6665, allocations: 4.383 MB / 0.7527 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.6665, allocations: 0 / 0.7527 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.6669, allocations: 130.9 kB / 0.7528 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.6679, allocations: 0.6308 MB / 0.7534 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.668, allocations: 20 kB / 0.7534 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.6696, allocations: 2.315 MB / 0.7557 GB, free: 9.453 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6696, allocations: 3.188 kB / 0.7557 GB, free: 9.453 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.6725, allocations: 2.999 MB / 0.7586 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00043/0.6729, allocations: 250.2 kB / 0.7588 GB, free: 6.227 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.234e-05/0.673, allocations: 34.58 kB / 0.7589 GB, free: 6.195 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.6733, allocations: 27.98 kB / 0.7589 GB, free: 6.168 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.6734, allocations: 60.88 kB / 0.759 GB, free: 6.109 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.6735, allocations: 35.92 kB / 0.759 GB, free: 6.074 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0007238/0.6742, allocations: 0.6673 MB / 0.7596 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6742, allocations: 0 / 0.7596 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00676/0.681, allocations: 1.855 MB / 0.7615 GB, free: 3.543 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (firstOrder.y) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse13.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,5), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01259/0.6935, allocations: 5.122 MB / 0.7665 GB, free: 14.58 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00177/0.6953, allocations: 1.002 MB / 0.7674 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.6953, allocations: 4 kB / 0.7674 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007738/0.6961, allocations: 0.6213 MB / 0.7681 GB, free: 13.01 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.6984, allocations: 0.6505 MB / 0.7687 GB, free: 12.39 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10429:11-10429:222:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getTwoPhaseUnit(vaporQualitySensor.quantity) Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01525/0.7137, allocations: 9.735 MB / 0.7782 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.7143, allocations: 0.7188 MB / 0.7789 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001142/0.7154, allocations: 334.1 kB / 0.7792 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006876/0.7161, allocations: 0.6487 MB / 0.7798 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of SimCode: time 2.134e-06/0.7161, allocations: 0 / 0.7798 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1649/0.881, allocations: 91.97 MB / 0.8697 GB, free: 5.352 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/14.31, allocations: 11.86 kB / 0.8697 GB, free: 5.34 MB / 0.7292 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_ClausiusRankine_Step9VaporQualityInversion.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 17.765059030614793] Failed to read output from testmodel.py, exit status != 0: 14.464790380559862 14.476494671 13.919547186 Calling exit ...