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.001408/0.001408, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 190.2 kB / 16.67 MB, free: 6.57 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.341/1.341, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04953/0.04953, allocations: 9.092 MB / 279 MB, free: 12.1 MB / 238.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.002083/0.002083, allocations: 71.91 kB / 386.9 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2287, allocations: 48.16 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01783/0.2465, allocations: 17.9 MB / 453 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.2634, allocations: 17 MB / 470 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.2636, allocations: 4 kB / 470 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000844/0.2645, allocations: 284.5 kB / 470.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005477/0.2651, allocations: 208.2 kB / 470.5 MB, free: 11.75 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.01902/0.2841, allocations: 7.099 MB / 477.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.2845, allocations: 286.4 kB / 477.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.002e-05/0.2846, allocations: 13.69 kB / 477.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.2848, allocations: 131.4 kB / 478 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.285, allocations: 71.66 kB / 478.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.285, allocations: 4 kB / 478.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01776/0.3028, allocations: 10.12 MB / 488.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.583e-05/0.3028, allocations: 19.86 kB / 488.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.303, allocations: 79.62 kB / 488.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009821/0.3128, allocations: 4.388 MB / 492.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3129, allocations: 3.938 kB / 492.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3129, allocations: 0 / 492.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.3129, allocations: 0 / 492.7 MB, free: 7.07 MB / 366.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.001929/0.3148, allocations: 1.025 MB / 493.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.3149, allocations: 8.031 kB / 493.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.3149, allocations: 46.55 kB / 493.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.988e-05/0.315, allocations: 27.86 kB / 493.8 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.3151, allocations: 190.7 kB / 494 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.3152, allocations: 4 kB / 494 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.3152, allocations: 0 / 494 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.3155, allocations: 160.2 kB / 494.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3155, allocations: 0 / 494.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3155, allocations: 4 kB / 494.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.3155, allocations: 7.984 kB / 494.2 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.3158, allocations: 115.9 kB / 494.3 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.3165, allocations: 0.5279 MB / 494.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3167, allocations: 134.5 kB / 494.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.3169, allocations: 128.8 kB / 495.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1434/0.4603, allocations: 85.21 MB / 0.5667 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.4604, allocations: 34.56 kB / 0.5667 GB, free: 500 kB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.444e-06/0.4604, allocations: 0 / 0.5667 GB, free: 500 kB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007394/0.4612, allocations: 360.9 kB / 0.567 GB, free: 132 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4612, allocations: 51.41 kB / 0.5671 GB, free: 68 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.4614, allocations: 125.8 kB / 0.5672 GB, free: 15.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.4614, allocations: 25.7 kB / 0.5672 GB, free: 15.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/0.4614, allocations: 93.08 kB / 0.5673 GB, free: 15.81 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.98e-05/0.4615, allocations: 138.7 kB / 0.5675 GB, free: 15.67 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.489e-05/0.4616, allocations: 41.7 kB / 0.5675 GB, free: 15.62 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4618, allocations: 326.8 kB / 0.5678 GB, free: 15.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.4619, allocations: 87.89 kB / 0.5679 GB, free: 15.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.4621, allocations: 126.5 kB / 0.568 GB, free: 15.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.4625, allocations: 231 kB / 0.5682 GB, free: 14.84 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4625, allocations: 0 / 0.5682 GB, free: 14.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000447/0.463, allocations: 273.2 kB / 0.5685 GB, free: 14.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.463, allocations: 7.984 kB / 0.5685 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.463, allocations: 0 / 0.5685 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.463, allocations: 7.938 kB / 0.5685 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.96e-05/0.4631, allocations: 8 kB / 0.5685 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.4631, allocations: 3.984 kB / 0.5685 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.572e-05/0.4633, allocations: 23.78 kB / 0.5686 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.4633, allocations: 4 kB / 0.5686 GB, free: 14.52 MB / 478.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 0.0001006/0.4634, allocations: 125.8 kB / 0.5687 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.4634, allocations: 19.89 kB / 0.5687 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005455/0.464, allocations: 310.7 kB / 0.569 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.464, allocations: 8.078 kB / 0.569 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.464, allocations: 7.938 kB / 0.569 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.464, allocations: 0 / 0.569 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.4643, allocations: 265.2 kB / 0.5693 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.4643, allocations: 0 / 0.5693 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.867e-05/0.4644, allocations: 4 kB / 0.5693 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4644, allocations: 4 kB / 0.5693 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.4644, allocations: 11.92 kB / 0.5693 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4644, allocations: 0 / 0.5693 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4644, allocations: 0 / 0.5693 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000481/0.4649, allocations: 359.1 kB / 0.5696 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.557e-05/0.465, allocations: 112.8 kB / 0.5697 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.465, allocations: 7.922 kB / 0.5697 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.4651, allocations: 8 kB / 0.5697 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.4652, allocations: 11.92 kB / 0.5698 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.4652, allocations: 0 / 0.5698 GB, free: 13.19 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.908e-05/0.4653, allocations: 95.27 kB / 0.5698 GB, free: 13.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4653, allocations: 4 kB / 0.5698 GB, free: 13.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002501/0.4678, allocations: 1.125 MB / 0.5709 GB, free: 11.96 MB / 478.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.004494/0.4723, allocations: 2.475 MB / 0.5734 GB, free: 9.457 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004723/0.4728, allocations: 253.7 kB / 0.5736 GB, free: 9.203 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4728, allocations: 3.938 kB / 0.5736 GB, free: 9.199 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.473, allocations: 145.7 kB / 0.5737 GB, free: 9.051 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008684/0.4739, allocations: 159.5 kB / 0.5739 GB, free: 8.898 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.4755, allocations: 0.8517 MB / 0.5747 GB, free: 7.996 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.4758, allocations: 0.7208 MB / 0.5754 GB, free: 7.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 6.604e-05/0.4759, allocations: 15.92 kB / 0.5755 GB, free: 7.234 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/0.476, allocations: 39.42 kB / 0.5755 GB, free: 7.195 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.476, allocations: 0 / 0.5755 GB, free: 7.195 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2336/0.7096, allocations: 32.46 MB / 0.6072 GB, free: 155.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/15.97, allocations: 6.031 kB / 0.6072 GB, free: 155.5 MB / 494.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)