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.005414/0.005414, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001233/0.001233, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.457/1.457, allocations: 205.1 MB / 222.6 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.04935/0.04935, allocations: 9.096 MB / 279 MB, free: 12.07 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.001745/0.001746, allocations: 71.12 kB / 387 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2727, allocations: 48.15 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02002/0.2927, allocations: 17.91 MB / 453 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01827/0.311, allocations: 17 MB / 470 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.3113, allocations: 0 / 470 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007806/0.3121, allocations: 281.2 kB / 470.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005472/0.3127, allocations: 212.2 kB / 470.5 MB, free: 11.74 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.02022/0.3329, allocations: 7.103 MB / 477.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.3334, allocations: 286.4 kB / 477.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.735e-05/0.3334, allocations: 17.62 kB / 477.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.3337, allocations: 123.4 kB / 478 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.3338, allocations: 75.66 kB / 478.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.3338, allocations: 8 kB / 478.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02143/0.3553, allocations: 10.12 MB / 488.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.312e-05/0.3553, allocations: 15.88 kB / 488.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.3556, allocations: 87.61 kB / 488.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01265/0.3682, allocations: 4.373 MB / 492.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.3683, allocations: 0 / 492.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3683, allocations: 3.938 kB / 492.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.3683, allocations: 0 / 492.7 MB, free: 7.047 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.002283/0.3706, allocations: 0.9977 MB / 493.7 MB, free: 6.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3706, allocations: 8.031 kB / 493.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/0.3707, allocations: 42.55 kB / 493.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.453e-05/0.3708, allocations: 19.81 kB / 493.8 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.371, allocations: 186.7 kB / 494 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.371, allocations: 8 kB / 494 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.371, allocations: 0 / 494 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.3714, allocations: 168.2 kB / 494.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3714, allocations: 0 / 494.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.3714, allocations: 0 / 494.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.3714, allocations: 11.98 kB / 494.1 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.3717, allocations: 107.9 kB / 494.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.3724, allocations: 0.5317 MB / 494.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.3726, allocations: 130.5 kB / 494.9 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.3728, allocations: 116.8 kB / 495 MB, free: 4.562 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.143/0.5158, allocations: 85.22 MB / 0.5666 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.5159, allocations: 34.56 kB / 0.5667 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 3.226e-06/0.5159, allocations: 0 / 0.5667 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007626/0.5167, allocations: 372.7 kB / 0.567 GB, free: 148 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.5167, allocations: 51.41 kB / 0.5671 GB, free: 84 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.5169, allocations: 117.8 kB / 0.5672 GB, free: 15.96 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.5169, allocations: 25.7 kB / 0.5672 GB, free: 15.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.517, allocations: 93.03 kB / 0.5673 GB, free: 15.83 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.5171, allocations: 130 kB / 0.5674 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.477e-05/0.5172, allocations: 45.59 kB / 0.5675 GB, free: 15.65 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.5173, allocations: 334.8 kB / 0.5678 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.5175, allocations: 83.95 kB / 0.5679 GB, free: 15.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.5177, allocations: 126.5 kB / 0.568 GB, free: 15.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.518, allocations: 235 kB / 0.5682 GB, free: 14.86 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.518, allocations: 4 kB / 0.5682 GB, free: 14.86 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004029/0.5184, allocations: 261.1 kB / 0.5685 GB, free: 14.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.5185, allocations: 4 kB / 0.5685 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.5185, allocations: 0 / 0.5685 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.5185, allocations: 7.938 kB / 0.5685 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.721e-05/0.5186, allocations: 16.05 kB / 0.5685 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5186, allocations: 160 / 0.5685 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.5187, allocations: 27.73 kB / 0.5685 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.5187, allocations: 4 kB / 0.5685 GB, free: 14.54 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 9.557e-05/0.5188, allocations: 117.8 kB / 0.5686 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.5189, allocations: 15.81 kB / 0.5686 GB, free: 14.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000531/0.5194, allocations: 322.7 kB / 0.569 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.5195, allocations: 15.86 kB / 0.569 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5195, allocations: 0 / 0.569 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.5195, allocations: 0 / 0.569 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.5197, allocations: 257.2 kB / 0.5692 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5198, allocations: 0 / 0.5692 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.394e-05/0.5198, allocations: 11.98 kB / 0.5692 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.5198, allocations: 0 / 0.5692 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.5198, allocations: 7.938 kB / 0.5692 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.5199, allocations: 0 / 0.5692 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5199, allocations: 0 / 0.5692 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004523/0.5203, allocations: 367 kB / 0.5696 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.5204, allocations: 112.7 kB / 0.5697 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.5205, allocations: 3.938 kB / 0.5697 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.5206, allocations: 11.98 kB / 0.5697 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.5206, allocations: 8 kB / 0.5697 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.5207, allocations: 3.984 kB / 0.5697 GB, free: 13.21 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.717e-05/0.5207, allocations: 91.28 kB / 0.5698 GB, free: 13.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.5207, allocations: 0 / 0.5698 GB, free: 13.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00275/0.5235, allocations: 1.109 MB / 0.5709 GB, free: 12.01 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.007099/0.5306, allocations: 2.454 MB / 0.5733 GB, free: 9.531 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.5312, allocations: 261.3 kB / 0.5735 GB, free: 9.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5312, allocations: 4.125 kB / 0.5735 GB, free: 9.266 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.5315, allocations: 149.6 kB / 0.5737 GB, free: 9.113 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009151/0.5324, allocations: 152.2 kB / 0.5738 GB, free: 8.965 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.5349, allocations: 0.8158 MB / 0.5746 GB, free: 8.102 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.5352, allocations: 0.7247 MB / 0.5753 GB, free: 7.352 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 8.456e-05/0.5353, allocations: 7.984 kB / 0.5753 GB, free: 7.344 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.611e-05/0.5354, allocations: 47.42 kB / 0.5754 GB, free: 7.297 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5354, allocations: 0 / 0.5754 GB, free: 7.297 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2651/0.8005, allocations: 32.52 MB / 0.6071 GB, free: 155.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.311/10.11, allocations: 6.859 kB / 0.6071 GB, free: 155.6 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)