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.0009145/0.0009145, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001286/0.001286, allocations: 213.2 kB / 22.25 MB, free: 3.586 MB / 13.93 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 0.9632/0.9632, allocations: 230.6 MB / 256 MB, free: 9.613 MB / 202.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.6797/0.6797, allocations: 150.8 MB / 463.2 MB, free: 6.508 MB / 362.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 0.00116/0.00116, allocations: 92.58 kB / 0.6392 GB, free: 32.56 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1726, allocations: 88.06 MB / 0.7252 GB, free: 8.375 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion): time 0.04951/0.2221, allocations: 66.23 MB / 0.7899 GB, free: 5.926 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02649/0.2486, allocations: 27.47 MB / 0.8167 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001706/0.2503, allocations: 55.44 kB / 0.8167 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.2521, allocations: 0.6828 MB / 0.8174 GB, free: 9.633 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.0207/0.2728, allocations: 7.677 MB / 0.8249 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.3859/0.6587, allocations: 2.044 MB / 0.8269 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.003035/0.6617, allocations: 2.097 MB / 0.8289 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003577/0.6621, allocations: 241.7 kB / 0.8292 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01213/0.6742, allocations: 8.835 MB / 0.8378 GB, free: 7.828 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.6753, allocations: 0.6901 MB / 0.8385 GB, free: 7.828 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.6755, allocations: 93.72 kB / 0.8386 GB, free: 7.828 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01705/0.6925, allocations: 10.75 MB / 0.8491 GB, free: 7.801 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.6927, allocations: 257.4 kB / 0.8493 GB, free: 7.801 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.000696/0.6934, allocations: 0.6003 MB / 0.8499 GB, free: 7.711 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.707, allocations: 8.215 MB / 0.8579 GB, free: 7.145 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.707, allocations: 1.344 kB / 0.8579 GB, free: 7.145 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.486e-06/0.707, allocations: 0 / 0.8579 GB, free: 7.145 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.757e-05/0.7071, allocations: 0 / 0.8579 GB, free: 7.145 MB / 0.6355 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.005798/0.7129, allocations: 2.756 MB / 0.8606 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/0.7129, allocations: 9.625 kB / 0.8606 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.7131, allocations: 177.8 kB / 0.8608 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/0.7143, allocations: 371.9 kB / 0.8611 GB, free: 5.668 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.7154, allocations: 0.7977 MB / 0.8619 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.7155, allocations: 199.4 kB / 0.8621 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.7156, allocations: 117.2 kB / 0.8622 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.7172, allocations: 1.489 MB / 0.8637 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.7172, allocations: 9.062 kB / 0.8637 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.812e-05/0.7173, allocations: 50.31 kB / 0.8637 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.7173, allocations: 29.97 kB / 0.8638 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.7186, allocations: 1.02 MB / 0.8647 GB, free: 4.785 MB / 0.6355 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.003475/0.7221, allocations: 4.979 MB / 0.8696 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.7233, allocations: 0.8405 MB / 0.8704 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004124/0.7238, allocations: 371.8 kB / 0.8708 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06093/0.7847, allocations: 36.49 MB / 0.9064 GB, free: 12.03 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.7847, allocations: 46.92 kB / 0.9065 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=85): time 2.655e-06/0.7847, allocations: 1.125 kB / 0.9065 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of matching and sorting (n=85): time 0.003073/0.7878, allocations: 1.403 MB / 0.9078 GB, free: 10.89 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.7879, allocations: 90.11 kB / 0.9079 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009218/0.7888, allocations: 0.8835 MB / 0.9088 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.7888, allocations: 40.45 kB / 0.9088 GB, free: 10.05 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003405/0.7892, allocations: 0.6286 MB / 0.9094 GB, free: 9.633 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.7894, allocations: 312.1 kB / 0.9097 GB, free: 9.371 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.7895, allocations: 180.5 kB / 0.9099 GB, free: 9.258 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.7896, allocations: 343.1 kB / 0.9102 GB, free: 8.934 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.79, allocations: 254.7 kB / 0.9105 GB, free: 8.766 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/0.7904, allocations: 0.5684 MB / 0.911 GB, free: 8.164 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/0.7913, allocations: 0.8578 MB / 0.9119 GB, free: 7.453 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.7913, allocations: 7.562 kB / 0.9119 GB, free: 7.449 MB / 0.6667 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001281/0.7926, allocations: 1.017 MB / 0.9129 GB, free: 6.715 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.7926, allocations: 8.188 kB / 0.9129 GB, free: 6.707 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.7927, allocations: 19.94 kB / 0.9129 GB, free: 6.688 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006482/0.7933, allocations: 138.4 kB / 0.913 GB, free: 6.562 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004544/0.7938, allocations: 218.1 kB / 0.9132 GB, free: 6.375 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008042/0.7946, allocations: 1.725 MB / 0.9149 GB, free: 4.633 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.7951, allocations: 117 kB / 0.915 GB, free: 4.535 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/0.7951, allocations: 44 kB / 0.9151 GB, free: 4.5 MB / 0.6667 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.0004309/0.7956, allocations: 281.1 kB / 0.9153 GB, free: 4.316 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.7957, allocations: 127.2 kB / 0.9155 GB, free: 4.191 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.7981, allocations: 3.072 MB / 0.9185 GB, free: 1.613 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/0.7982, allocations: 35.95 kB / 0.9185 GB, free: 1.578 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.7982, allocations: 3.984 kB / 0.9185 GB, free: 1.574 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.7982, allocations: 3.984 kB / 0.9185 GB, free: 1.57 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003664/0.8018, allocations: 4.382 MB / 0.9228 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.8019, allocations: 0 / 0.9228 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.8021, allocations: 131.2 kB / 0.9229 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006814/0.8028, allocations: 0.6213 MB / 0.9235 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.8029, allocations: 23.94 kB / 0.9235 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.804, allocations: 2.32 MB / 0.9258 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.804, allocations: 0 / 0.9258 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.8064, allocations: 2.993 MB / 0.9287 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.8067, allocations: 246.2 kB / 0.929 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.8067, allocations: 31.89 kB / 0.929 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.807, allocations: 39.91 kB / 0.929 GB, free: 6.75 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.111e-05/0.807, allocations: 60.89 kB / 0.9291 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.8071, allocations: 27.98 kB / 0.9291 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0005761/0.8076, allocations: 0.6673 MB / 0.9298 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6e-08/0.8076, allocations: 0 / 0.9298 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005702/0.8133, allocations: 1.855 MB / 0.9316 GB, free: 4.133 MB / 0.6823 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.007304/0.8206, allocations: 4.912 MB / 0.9364 GB, free: 15.39 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001214/0.8219, allocations: 0.9983 MB / 0.9374 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8219, allocations: 0 / 0.9374 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.8224, allocations: 0.6157 MB / 0.938 GB, free: 13.83 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.824, allocations: 0.6494 MB / 0.9386 GB, free: 13.22 MB / 0.698 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546:220: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.009913/0.8339, allocations: 9.752 MB / 0.9481 GB, free: 3.164 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.8344, allocations: 0.7188 MB / 0.9488 GB, free: 2.402 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006878/0.8351, allocations: 330.6 kB / 0.9491 GB, free: 2.086 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005136/0.8356, allocations: 0.6515 MB / 0.9498 GB, free: 1.434 MB / 0.698 GB Notification: Performance of SimCode: time 1.102e-06/0.8356, allocations: 0 / 0.9498 GB, free: 1.434 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/0.9457, allocations: 91.64 MB / 1.039 GB, free: 6.465 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.92, allocations: 11.84 kB / 1.039 GB, free: 6.453 MB / 0.7917 GB " [Timeout remaining time 648] (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: 14.929998684674501] Failed to read output from testmodel.py, exit status != 0: 12.062969230115414 12.073246674 11.363930499 Calling exit ...