Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004996/0.004996, allocations: 96.8 kB / 15.73 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 191.9 kB / 16.67 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05266/0.05266, allocations: 9.095 MB / 279 MB, free: 2.953 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00356/0.00356, allocations: 71.64 kB / 386.9 MB, free: 47.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07566/0.07924, allocations: 48.19 MB / 435.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01836/0.09765, allocations: 17.91 MB / 453 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.117, allocations: 17 MB / 470 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1173, allocations: 0 / 470 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008619/0.1182, allocations: 278.6 kB / 470.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004978/0.1187, allocations: 210.7 kB / 470.5 MB, free: 4.605 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01796/0.1367, allocations: 7.09 MB / 477.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.1371, allocations: 290.2 kB / 477.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.155e-05/0.1372, allocations: 17.67 kB / 477.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1374, allocations: 123.5 kB / 478 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.1376, allocations: 67.67 kB / 478.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.1376, allocations: 0 / 478.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0184/0.156, allocations: 10.13 MB / 488.2 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.838e-05/0.1561, allocations: 19.86 kB / 488.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1562, allocations: 79.62 kB / 488.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.1674, allocations: 4.384 MB / 492.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1674, allocations: 0 / 492.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1674, allocations: 0 / 492.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1674, allocations: 0 / 492.7 MB, free: 14.37 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.002505/0.1699, allocations: 1.017 MB / 493.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.17, allocations: 16.03 kB / 493.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.072e-05/0.1701, allocations: 46.55 kB / 493.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.1701, allocations: 19.86 kB / 493.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.1703, allocations: 190.7 kB / 494 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.1703, allocations: 4 kB / 494 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.1703, allocations: 4 kB / 494 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.1707, allocations: 164.2 kB / 494.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1707, allocations: 0 / 494.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.1707, allocations: 8 kB / 494.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.1707, allocations: 7.984 kB / 494.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.171, allocations: 107.9 kB / 494.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007311/0.1717, allocations: 0.5356 MB / 494.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.172, allocations: 134.5 kB / 494.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.1722, allocations: 124.8 kB / 495.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3167/0.489, allocations: 85.21 MB / 0.5667 GB, free: 26.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.489, allocations: 33.94 kB / 0.5667 GB, free: 26.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.274e-06/0.489, allocations: 1.406 kB / 0.5667 GB, free: 26.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.000615/0.4897, allocations: 365.1 kB / 0.5671 GB, free: 26.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.4897, allocations: 59.16 kB / 0.5671 GB, free: 26.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.475e-05/0.4898, allocations: 124.2 kB / 0.5672 GB, free: 26.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.4898, allocations: 28.08 kB / 0.5673 GB, free: 26.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/0.4898, allocations: 92.42 kB / 0.5673 GB, free: 26.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.4899, allocations: 139.8 kB / 0.5675 GB, free: 26.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.49, allocations: 43.97 kB / 0.5675 GB, free: 26.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.79e-05/0.49, allocations: 323.9 kB / 0.5678 GB, free: 25.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.4902, allocations: 89.12 kB / 0.5679 GB, free: 25.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.4903, allocations: 121 kB / 0.568 GB, free: 25.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.4906, allocations: 227.8 kB / 0.5682 GB, free: 25.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4906, allocations: 4 kB / 0.5683 GB, free: 25.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003499/0.491, allocations: 269 kB / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.491, allocations: 5.812 kB / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.491, allocations: 3.562 kB / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.491, allocations: 0 / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.363e-05/0.4911, allocations: 13.47 kB / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.4911, allocations: 3.781 kB / 0.5685 GB, free: 25.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.008e-05/0.4912, allocations: 27.08 kB / 0.5686 GB, free: 25.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.4912, allocations: 3.969 kB / 0.5686 GB, free: 25.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.445e-05/0.4913, allocations: 121.3 kB / 0.5687 GB, free: 25.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.4914, allocations: 15.5 kB / 0.5687 GB, free: 25.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004377/0.4918, allocations: 321.7 kB / 0.569 GB, free: 25.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.4918, allocations: 14.94 kB / 0.569 GB, free: 25.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4918, allocations: 0 / 0.569 GB, free: 25.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4918, allocations: 3.609 kB / 0.569 GB, free: 25.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.492, allocations: 262 kB / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.4921, allocations: 3.422 kB / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-05/0.4921, allocations: 10.78 kB / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4921, allocations: 0 / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.4921, allocations: 3.656 kB / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4921, allocations: 3.969 kB / 0.5693 GB, free: 25.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4921, allocations: 7.188 kB / 0.5693 GB, free: 25.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.4925, allocations: 350.5 kB / 0.5696 GB, free: 25.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.806e-05/0.4925, allocations: 110.2 kB / 0.5697 GB, free: 25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.4926, allocations: 5.312 kB / 0.5697 GB, free: 25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4927, allocations: 6.922 kB / 0.5697 GB, free: 25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.4927, allocations: 3.594 kB / 0.5697 GB, free: 25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.4927, allocations: 7.969 kB / 0.5698 GB, free: 25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.24e-05/0.4928, allocations: 93.62 kB / 0.5698 GB, free: 24.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4928, allocations: 0 / 0.5698 GB, free: 24.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002101/0.4949, allocations: 1.13 MB / 0.571 GB, free: 24.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003892/0.4988, allocations: 2.487 MB / 0.5734 GB, free: 23.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.4992, allocations: 251.4 kB / 0.5736 GB, free: 23.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4992, allocations: 1.969 kB / 0.5736 GB, free: 23.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.4994, allocations: 156 kB / 0.5738 GB, free: 23.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008489/0.5003, allocations: 146.1 kB / 0.5739 GB, free: 23.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.5016, allocations: 0.8464 MB / 0.5747 GB, free: 23.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.5017, allocations: 0.723 MB / 0.5754 GB, free: 22.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.817e-05/0.5018, allocations: 16.12 kB / 0.5755 GB, free: 22.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.586e-05/0.5018, allocations: 35.03 kB / 0.5755 GB, free: 22.68 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.5018, allocations: 0 / 0.5755 GB, free: 22.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05729/0.5591, allocations: 32.47 MB / 0.6072 GB, free: 7.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.475/10.03, allocations: 15.47 kB / 0.6072 GB, free: 7.113 MB / 430.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)