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.0009961/0.0009961, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009716/0.0009716, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.269/1.269, allocations: 177.1 MB / 202.8 MB, free: 5.734 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 1.046/1.046, allocations: 116 MB / 375.2 MB, free: 4.184 MB / 346.7 MB " [Timeout remaining time 178] 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 2.705e-06/2.705e-06, allocations: 3.938 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.785e-05, allocations: 6.219 kB / 0.5533 GB, free: 13.31 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion): time 0.06375/0.06377, allocations: 65.69 MB / 0.6174 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.6691/0.7329, allocations: 27.44 MB / 0.6442 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003289/0.7362, allocations: 55.34 kB / 0.6443 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.003858/0.74, allocations: 0.6931 MB / 0.645 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.03783/0.7778, allocations: 7.797 MB / 0.6526 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01004/0.7879, allocations: 2.093 MB / 0.6546 GB, free: 9.898 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006038/0.7939, allocations: 2.195 MB / 0.6568 GB, free: 9.184 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009649/0.7949, allocations: 242.4 kB / 0.657 GB, free: 9.109 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02023/0.8151, allocations: 9.176 MB / 0.6659 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003035/0.8182, allocations: 0.5705 MB / 0.6665 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003909/0.8185, allocations: 93.84 kB / 0.6666 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03951/0.858, allocations: 10.78 MB / 0.6771 GB, free: 6.328 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000999/0.859, allocations: 266.3 kB / 0.6774 GB, free: 6.254 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.8611, allocations: 0.4888 MB / 0.6779 GB, free: 6.184 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.04397/0.905, allocations: 9.866 MB / 0.6875 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 1.437e-05/0.905, allocations: 0 / 0.6875 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.407e-06/0.905, allocations: 0 / 0.6875 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.144e-05/0.9051, allocations: 0 / 0.6875 GB, free: 3.184 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.01271/0.9178, allocations: 2.731 MB / 0.6902 GB, free: 1.586 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 8.679e-05/0.9179, allocations: 11.5 kB / 0.6902 GB, free: 1.586 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002797/0.9182, allocations: 183.7 kB / 0.6903 GB, free: 1.512 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.92, allocations: 367.5 kB / 0.6907 GB, free: 1.367 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002233/0.9222, allocations: 0.7989 MB / 0.6915 GB, free: 0.9375 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.9224, allocations: 204.7 kB / 0.6917 GB, free: 0.8008 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.9226, allocations: 118.3 kB / 0.6918 GB, free: 0.8008 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/0.9253, allocations: 1.483 MB / 0.6932 GB, free: 128 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.9254, allocations: 6 kB / 0.6932 GB, free: 128 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.31e-05/0.9254, allocations: 51.75 kB / 0.6933 GB, free: 128 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/0.9255, allocations: 31.5 kB / 0.6933 GB, free: 128 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.9276, allocations: 1.017 MB / 0.6943 GB, free: 15.95 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.007566/0.9352, allocations: 4.976 MB / 0.6992 GB, free: 12.57 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.9371, allocations: 0.8321 MB / 0.7 GB, free: 12.13 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006067/0.9378, allocations: 373 kB / 0.7003 GB, free: 11.96 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07975/1.018, allocations: 36.45 MB / 0.7359 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.184e-05/1.018, allocations: 43.55 kB / 0.736 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=85): time 4.509e-06/1.018, allocations: 0 / 0.736 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=85): time 0.004344/1.022, allocations: 1.4 MB / 0.7373 GB, free: 12.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/1.022, allocations: 86.11 kB / 0.7374 GB, free: 12.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/1.023, allocations: 0.8935 MB / 0.7383 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/1.023, allocations: 41.7 kB / 0.7383 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005639/1.024, allocations: 0.6213 MB / 0.7389 GB, free: 10.62 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/1.024, allocations: 311 kB / 0.7392 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003186/1.025, allocations: 190.5 kB / 0.7394 GB, free: 10.12 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002005/1.025, allocations: 341.9 kB / 0.7397 GB, free: 9.785 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/1.025, allocations: 245.9 kB / 0.74 GB, free: 9.543 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/1.027, allocations: 0.571 MB / 0.7405 GB, free: 8.836 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/1.028, allocations: 0.8627 MB / 0.7414 GB, free: 7.883 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/1.028, allocations: 8 kB / 0.7414 GB, free: 7.875 MB / 0.6042 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001726/1.029, allocations: 1.016 MB / 0.7424 GB, free: 6.906 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/1.029, allocations: 9.406 kB / 0.7424 GB, free: 6.898 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/1.03, allocations: 8 kB / 0.7424 GB, free: 6.891 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008786/1.03, allocations: 141.5 kB / 0.7425 GB, free: 6.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006549/1.031, allocations: 223.5 kB / 0.7427 GB, free: 6.547 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/1.032, allocations: 1.724 MB / 0.7444 GB, free: 4.758 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007757/1.033, allocations: 123.1 kB / 0.7445 GB, free: 4.637 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.015e-05/1.033, allocations: 44 kB / 0.7446 GB, free: 4.594 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.0007521/1.034, allocations: 270.4 kB / 0.7448 GB, free: 4.336 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/1.034, allocations: 127.1 kB / 0.745 GB, free: 4.211 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004176/1.038, allocations: 3.085 MB / 0.748 GB, free: 1.137 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.579e-05/1.038, allocations: 39.94 kB / 0.748 GB, free: 1.098 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.038, allocations: 0 / 0.748 GB, free: 1.098 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/1.038, allocations: 11.92 kB / 0.748 GB, free: 1.086 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005808/1.044, allocations: 4.379 MB / 0.7523 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-06/1.044, allocations: 0 / 0.7523 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/1.045, allocations: 139.2 kB / 0.7524 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/1.046, allocations: 0.6228 MB / 0.753 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/1.046, allocations: 19.98 kB / 0.7531 GB, free: 11.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002375/1.048, allocations: 2.32 MB / 0.7553 GB, free: 9.551 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.048, allocations: 0 / 0.7553 GB, free: 9.551 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003851/1.052, allocations: 2.998 MB / 0.7583 GB, free: 6.574 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008395/1.053, allocations: 246.2 kB / 0.7585 GB, free: 6.332 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/1.053, allocations: 35.27 kB / 0.7585 GB, free: 6.301 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/1.053, allocations: 31.97 kB / 0.7586 GB, free: 6.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/1.054, allocations: 63.78 kB / 0.7586 GB, free: 6.211 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/1.054, allocations: 31.94 kB / 0.7587 GB, free: 6.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0009609/1.055, allocations: 0.6673 MB / 0.7593 GB, free: 5.508 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.61e-07/1.055, allocations: 0 / 0.7593 GB, free: 5.508 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01/1.065, allocations: 1.855 MB / 0.7611 GB, free: 3.648 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.02088/1.085, allocations: 5.119 MB / 0.7661 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00262/1.088, allocations: 1.007 MB / 0.7671 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.088, allocations: 0 / 0.7671 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001053/1.089, allocations: 0.6193 MB / 0.7677 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/1.092, allocations: 0.656 MB / 0.7683 GB, free: 12.49 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.02451/1.116, allocations: 9.727 MB / 0.7778 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008478/1.117, allocations: 0.7227 MB / 0.7785 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001187/1.118, allocations: 337.4 kB / 0.7789 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007416/1.119, allocations: 0.6481 MB / 0.7795 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of SimCode: time 2.785e-06/1.119, allocations: 0 / 0.7795 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2015/1.321, allocations: 91.95 MB / 0.8693 GB, free: 5.473 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.6, allocations: 7.969 kB / 0.8693 GB, free: 5.465 MB / 0.7292 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_ClausiusRankine_Step9VaporQualityInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 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: 20.56634028069675] Failed to read output from testmodel.py, exit status != 0: 15.744300664402544 15.753864832 14.846344548 Calling exit ...