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.001114/0.001114, allocations: 80.25 kB / 19.27 MB, free: 0.5781 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.001158/0.001158, allocations: 170 kB / 22.58 MB, free: 1.914 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.088/1.088, allocations: 177.1 MB / 202.9 MB, free: 5.695 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.8453/0.8453, allocations: 116 MB / 375.4 MB, free: 4.137 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.874e-06/1.874e-06, allocations: 0 / 0.5535 GB, free: 13.22 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.419e-05, allocations: 2.312 kB / 0.5535 GB, free: 13.21 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.ClausiusRankine.Step9VaporQualityInversion): time 0.05932/0.05934, allocations: 65.71 MB / 0.6177 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.5936/0.6529, allocations: 27.43 MB / 0.6444 GB, free: 10.74 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003511/0.6564, allocations: 56.97 kB / 0.6445 GB, free: 10.74 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.003176/0.6596, allocations: 0.6941 MB / 0.6452 GB, free: 10.74 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0375/0.6971, allocations: 7.794 MB / 0.6528 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0099/0.707, allocations: 2.091 MB / 0.6548 GB, free: 9.965 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004297/0.7113, allocations: 2.187 MB / 0.657 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005527/0.7118, allocations: 247.5 kB / 0.6572 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01657/0.7284, allocations: 9.176 MB / 0.6662 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.7301, allocations: 0.5681 MB / 0.6667 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.7302, allocations: 95.09 kB / 0.6668 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03679/0.767, allocations: 10.78 MB / 0.6773 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.7676, allocations: 258.6 kB / 0.6776 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.7692, allocations: 0.4897 MB / 0.6781 GB, free: 6.262 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.03757/0.8067, allocations: 9.879 MB / 0.6877 GB, free: 3.164 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.8067, allocations: 0 / 0.6877 GB, free: 3.164 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8067, allocations: 0 / 0.6877 GB, free: 3.164 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.331e-05/0.8068, allocations: 0 / 0.6877 GB, free: 3.164 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.01018/0.817, allocations: 2.732 MB / 0.6904 GB, free: 1.566 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.817, allocations: 14.59 kB / 0.6904 GB, free: 1.562 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000143/0.8172, allocations: 179 kB / 0.6906 GB, free: 1.492 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.8186, allocations: 368.4 kB / 0.6909 GB, free: 1.348 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/0.8204, allocations: 0.8563 MB / 0.6917 GB, free: 0.9141 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001525/0.8206, allocations: 201.1 kB / 0.6919 GB, free: 0.7812 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.8207, allocations: 117.9 kB / 0.6921 GB, free: 0.7812 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.823, allocations: 1.488 MB / 0.6935 GB, free: 104 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.823, allocations: 2.062 kB / 0.6935 GB, free: 104 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-05/0.8231, allocations: 49.75 kB / 0.6936 GB, free: 104 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.8231, allocations: 31.41 kB / 0.6936 GB, free: 104 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.8251, allocations: 1.032 MB / 0.6946 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.005882/0.831, allocations: 5.017 MB / 0.6995 GB, free: 12.54 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.8326, allocations: 0.8357 MB / 0.7003 GB, free: 12.1 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005708/0.8331, allocations: 374.5 kB / 0.7007 GB, free: 11.93 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06817/0.9013, allocations: 36.5 MB / 0.7363 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/0.9014, allocations: 47.55 kB / 0.7364 GB, free: 13.54 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=85): time 3.547e-06/0.9014, allocations: 0 / 0.7364 GB, free: 13.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=85): time 0.003503/0.9049, allocations: 1.399 MB / 0.7377 GB, free: 12.15 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.9049, allocations: 86.11 kB / 0.7378 GB, free: 12.05 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.9061, allocations: 0.8825 MB / 0.7387 GB, free: 11.15 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.9062, allocations: 45.64 kB / 0.7387 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004264/0.9066, allocations: 0.6187 MB / 0.7393 GB, free: 10.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.9068, allocations: 314.6 kB / 0.7396 GB, free: 10.17 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.907, allocations: 186.5 kB / 0.7398 GB, free: 9.984 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002192/0.9073, allocations: 341.9 kB / 0.7401 GB, free: 9.645 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.9076, allocations: 249.9 kB / 0.7404 GB, free: 9.398 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006691/0.9083, allocations: 0.5699 MB / 0.7409 GB, free: 8.695 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009617/0.9092, allocations: 0.8641 MB / 0.7418 GB, free: 7.742 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.9093, allocations: 4 kB / 0.7418 GB, free: 7.738 MB / 0.6042 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00141/0.9107, allocations: 1.013 MB / 0.7428 GB, free: 6.77 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.9107, allocations: 12.25 kB / 0.7428 GB, free: 6.758 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.9107, allocations: 8 kB / 0.7428 GB, free: 6.75 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007323/0.9114, allocations: 143.4 kB / 0.7429 GB, free: 6.609 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004672/0.9119, allocations: 220.2 kB / 0.7431 GB, free: 6.406 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.9131, allocations: 1.719 MB / 0.7448 GB, free: 4.621 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/0.9136, allocations: 123.3 kB / 0.7449 GB, free: 4.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.147e-05/0.9137, allocations: 48 kB / 0.745 GB, free: 4.453 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.0005435/0.9142, allocations: 267.7 kB / 0.7452 GB, free: 4.199 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.9144, allocations: 127.1 kB / 0.7453 GB, free: 4.074 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003134/0.9175, allocations: 3.082 MB / 0.7483 GB, free: 1.004 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.439e-05/0.9176, allocations: 44.75 kB / 0.7484 GB, free: 0.9609 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/0.9176, allocations: 0 / 0.7484 GB, free: 0.9609 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.9176, allocations: 3.984 kB / 0.7484 GB, free: 0.957 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004691/0.9223, allocations: 4.387 MB / 0.7527 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.9223, allocations: 0 / 0.7527 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/0.9226, allocations: 138.2 kB / 0.7528 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008305/0.9235, allocations: 0.6262 MB / 0.7534 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.9235, allocations: 23.98 kB / 0.7534 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.925, allocations: 2.316 MB / 0.7557 GB, free: 9.414 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.925, allocations: 3.375 kB / 0.7557 GB, free: 9.414 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.9281, allocations: 3 MB / 0.7586 GB, free: 6.434 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.9284, allocations: 246.2 kB / 0.7589 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.9286, allocations: 27.89 kB / 0.7589 GB, free: 6.164 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.9288, allocations: 36.03 kB / 0.7589 GB, free: 6.129 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.9289, allocations: 60.88 kB / 0.759 GB, free: 6.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.929, allocations: 31.94 kB / 0.759 GB, free: 6.039 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0007476/0.9297, allocations: 0.6673 MB / 0.7597 GB, free: 5.367 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.9297, allocations: 0 / 0.7597 GB, free: 5.367 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.007861/0.9376, allocations: 1.859 MB / 0.7615 GB, free: 3.504 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.01105/0.9486, allocations: 5.126 MB / 0.7665 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00176/0.9504, allocations: 0.9978 MB / 0.7675 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.9504, allocations: 4 kB / 0.7675 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007657/0.9512, allocations: 0.6192 MB / 0.7681 GB, free: 12.97 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.9532, allocations: 0.6512 MB / 0.7687 GB, free: 12.36 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10426:11-10426: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.01531/0.9685, allocations: 9.73 MB / 0.7782 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006694/0.9691, allocations: 0.7265 MB / 0.7789 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0008324/0.97, allocations: 331.6 kB / 0.7792 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006673/0.9706, allocations: 0.6448 MB / 0.7799 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of SimCode: time 2.164e-06/0.9706, allocations: 0 / 0.7799 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1728/1.143, allocations: 91.97 MB / 0.8697 GB, free: 5.309 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.77, allocations: 7.922 kB / 0.8697 GB, free: 5.301 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.397756913676858] Failed to read output from testmodel.py, exit status != 0: 15.915273994207382 15.931306958 15.121776924 Calling exit ...