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.001295/0.001295, allocations: 76.44 kB / 19.17 MB, free: 0.7383 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.001118/0.001118, allocations: 173.2 kB / 22.46 MB, free: 2.098 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.053/1.053, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.7126/0.7126, allocations: 116 MB / 375.2 MB, free: 4.172 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.433e-06/1.433e-06, allocations: 0 / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.204e-05/1.348e-05, allocations: 2.281 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion): time 0.04792/0.04793, allocations: 65.71 MB / 0.6174 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.3838/0.4317, allocations: 27.43 MB / 0.6442 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001922/0.4336, allocations: 54.69 kB / 0.6443 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.436, allocations: 0.6927 MB / 0.645 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0285/0.4645, allocations: 7.791 MB / 0.6526 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.007189/0.4717, allocations: 2.102 MB / 0.6546 GB, free: 9.863 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004199/0.4759, allocations: 2.191 MB / 0.6568 GB, free: 9.152 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008493/0.4768, allocations: 241.9 kB / 0.657 GB, free: 9.078 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01661/0.4934, allocations: 9.181 MB / 0.6659 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.4964, allocations: 0.5677 MB / 0.6665 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003445/0.4968, allocations: 97.59 kB / 0.6666 GB, free: 6.473 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0282/0.525, allocations: 10.78 MB / 0.6771 GB, free: 6.293 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003552/0.5253, allocations: 255.5 kB / 0.6774 GB, free: 6.223 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.5269, allocations: 0.4924 MB / 0.6779 GB, free: 6.152 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02934/0.5563, allocations: 9.869 MB / 0.6875 GB, free: 3.152 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.5563, allocations: 0 / 0.6875 GB, free: 3.152 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.346e-06/0.5563, allocations: 4 kB / 0.6875 GB, free: 3.148 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.541e-05/0.5563, allocations: 0 / 0.6875 GB, free: 3.148 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.007159/0.5635, allocations: 2.727 MB / 0.6902 GB, free: 1.555 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.5635, allocations: 8.688 kB / 0.6902 GB, free: 1.555 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002994/0.5638, allocations: 178.7 kB / 0.6903 GB, free: 1.484 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.5651, allocations: 370.8 kB / 0.6907 GB, free: 1.336 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.5665, allocations: 0.7997 MB / 0.6915 GB, free: 0.9062 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.5667, allocations: 206.7 kB / 0.6917 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.5668, allocations: 116.1 kB / 0.6918 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.5689, allocations: 1.488 MB / 0.6932 GB, free: 96 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.5689, allocations: 6.281 kB / 0.6932 GB, free: 96 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-05/0.569, allocations: 49.19 kB / 0.6933 GB, free: 96 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.569, allocations: 30.31 kB / 0.6933 GB, free: 96 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.5707, allocations: 1.032 MB / 0.6943 GB, free: 15.94 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.005181/0.5759, allocations: 4.968 MB / 0.6992 GB, free: 12.55 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.5773, allocations: 0.8393 MB / 0.7 GB, free: 12.11 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.5778, allocations: 366.9 kB / 0.7003 GB, free: 11.94 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06626/0.6441, allocations: 36.45 MB / 0.7359 GB, free: 13.72 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.153e-05/0.6441, allocations: 47.55 kB / 0.736 GB, free: 13.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=85): time 3.456e-06/0.6441, allocations: 3.938 kB / 0.736 GB, free: 13.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=85): time 0.003195/0.6473, allocations: 1.399 MB / 0.7374 GB, free: 12.28 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.6474, allocations: 86.11 kB / 0.7374 GB, free: 12.18 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.6486, allocations: 0.8903 MB / 0.7383 GB, free: 11.27 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.6487, allocations: 41.7 kB / 0.7383 GB, free: 11.22 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004465/0.6491, allocations: 0.6201 MB / 0.739 GB, free: 10.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.6494, allocations: 309.3 kB / 0.7392 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.6496, allocations: 186.5 kB / 0.7394 GB, free: 10.11 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.6497, allocations: 341.9 kB / 0.7398 GB, free: 9.773 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.6501, allocations: 253.8 kB / 0.74 GB, free: 9.523 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.6506, allocations: 0.5727 MB / 0.7406 GB, free: 8.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009457/0.6516, allocations: 0.8687 MB / 0.7414 GB, free: 7.859 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.6516, allocations: 0 / 0.7414 GB, free: 7.859 MB / 0.6042 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001292/0.6529, allocations: 1.01 MB / 0.7424 GB, free: 6.895 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.6529, allocations: 8 kB / 0.7424 GB, free: 6.887 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.6529, allocations: 12.88 kB / 0.7424 GB, free: 6.875 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.6536, allocations: 141.6 kB / 0.7425 GB, free: 6.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.6541, allocations: 221.8 kB / 0.7428 GB, free: 6.531 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.6552, allocations: 1.723 MB / 0.7444 GB, free: 4.738 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006673/0.6558, allocations: 119.1 kB / 0.7446 GB, free: 4.621 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.299e-05/0.6559, allocations: 45.97 kB / 0.7446 GB, free: 4.578 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.0004363/0.6563, allocations: 273.8 kB / 0.7449 GB, free: 4.316 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.6565, allocations: 131.1 kB / 0.745 GB, free: 4.188 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/0.6594, allocations: 3.081 MB / 0.748 GB, free: 1.117 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.691e-05/0.6595, allocations: 35.94 kB / 0.748 GB, free: 1.082 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.6595, allocations: 0 / 0.748 GB, free: 1.082 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.6595, allocations: 3.984 kB / 0.748 GB, free: 1.078 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005217/0.6647, allocations: 4.384 MB / 0.7523 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.6647, allocations: 0 / 0.7523 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.665, allocations: 134.6 kB / 0.7524 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000804/0.6658, allocations: 0.6308 MB / 0.7531 GB, free: 11.95 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.6659, allocations: 27.98 kB / 0.7531 GB, free: 11.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.6675, allocations: 2.313 MB / 0.7553 GB, free: 9.535 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6675, allocations: 0 / 0.7553 GB, free: 9.535 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.6703, allocations: 3.005 MB / 0.7583 GB, free: 6.555 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003921/0.6707, allocations: 238.2 kB / 0.7585 GB, free: 6.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.642e-05/0.6707, allocations: 34.02 kB / 0.7585 GB, free: 6.289 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.671, allocations: 35.97 kB / 0.7586 GB, free: 6.254 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6711, allocations: 60.88 kB / 0.7586 GB, free: 6.195 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.6711, allocations: 28 kB / 0.7587 GB, free: 6.168 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0007897/0.6719, allocations: 0.6712 MB / 0.7593 GB, free: 5.492 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6719, allocations: 0 / 0.7593 GB, free: 5.492 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.006182/0.6781, allocations: 1.855 MB / 0.7611 GB, free: 3.633 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.01161/0.6897, allocations: 5.13 MB / 0.7661 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001658/0.6913, allocations: 0.9983 MB / 0.7671 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.6914, allocations: 0 / 0.7671 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0005649/0.6919, allocations: 0.6167 MB / 0.7677 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.6938, allocations: 0.6601 MB / 0.7683 GB, free: 12.48 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10414:11-10414: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.01471/0.7085, allocations: 9.739 MB / 0.7779 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005999/0.7091, allocations: 0.7149 MB / 0.7786 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0009673/0.7101, allocations: 338.8 kB / 0.7789 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005851/0.7107, allocations: 0.6409 MB / 0.7795 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of SimCode: time 2.805e-06/0.7107, allocations: 4 kB / 0.7795 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1497/0.8604, allocations: 91.95 MB / 0.8693 GB, free: 5.457 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.91, allocations: 3.938 kB / 0.8693 GB, free: 5.453 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.100086021237075] Failed to read output from testmodel.py, exit status != 0: 14.066799777559936 14.081228442 13.522320581 Calling exit ...