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.005509/0.005509, allocations: 100.3 kB / 15.73 MB, free: 6.031 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.001242/0.001243, allocations: 190.9 kB / 16.67 MB, free: 5.969 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.366/1.366, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04564/0.04564, allocations: 9.093 MB / 279 MB, free: 12.09 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.001509/0.001509, allocations: 68.45 kB / 386.9 MB, free: 8.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2569, allocations: 48.17 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02305/0.2801, allocations: 17.91 MB / 453 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01742/0.2975, allocations: 17 MB / 470 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.2978, allocations: 1.281 kB / 470 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000789/0.2986, allocations: 280.2 kB / 470.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.2992, allocations: 208.9 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.02098/0.3202, allocations: 7.101 MB / 477.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003912/0.3206, allocations: 290.4 kB / 477.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.44e-05/0.3207, allocations: 9.688 kB / 477.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.321, allocations: 131.4 kB / 478 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.3211, allocations: 67.73 kB / 478.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.3211, allocations: 4 kB / 478.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01771/0.3388, allocations: 10.13 MB / 488.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.3389, allocations: 19.86 kB / 488.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.339, allocations: 79.62 kB / 488.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.3506, allocations: 4.377 MB / 492.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3506, allocations: 0 / 492.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3506, allocations: 7.938 kB / 492.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.3506, allocations: 0 / 492.7 MB, free: 7.078 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.001941/0.3526, allocations: 0.9824 MB / 493.7 MB, free: 6.047 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3526, allocations: 12.03 kB / 493.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.809e-05/0.3527, allocations: 54.48 kB / 493.7 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.3527, allocations: 15.81 kB / 493.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.353, allocations: 186.7 kB / 493.9 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.353, allocations: 0 / 493.9 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.353, allocations: 12 kB / 494 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.3533, allocations: 164.2 kB / 494.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3534, allocations: 0 / 494.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.3534, allocations: 0 / 494.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3534, allocations: 11.98 kB / 494.1 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.3536, allocations: 107.9 kB / 494.2 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006426/0.3543, allocations: 0.5317 MB / 494.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.3545, allocations: 130.5 kB / 494.9 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.3547, allocations: 120.8 kB / 495 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1372/0.4919, allocations: 85.21 MB / 0.5666 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.492, allocations: 42.55 kB / 0.5667 GB, free: 0.543 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.545e-06/0.492, allocations: 0 / 0.5667 GB, free: 0.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.000671/0.4927, allocations: 360.7 kB / 0.567 GB, free: 188 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.4927, allocations: 51.41 kB / 0.5671 GB, free: 124 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.4928, allocations: 121.9 kB / 0.5672 GB, free: 15.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.4928, allocations: 29.7 kB / 0.5672 GB, free: 15.95 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.4929, allocations: 85.05 kB / 0.5673 GB, free: 15.87 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.291e-05/0.493, allocations: 141.9 kB / 0.5674 GB, free: 15.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.11e-05/0.4931, allocations: 45.55 kB / 0.5675 GB, free: 15.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4932, allocations: 330.8 kB / 0.5678 GB, free: 15.35 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.4933, allocations: 83.95 kB / 0.5679 GB, free: 15.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.4935, allocations: 122.5 kB / 0.568 GB, free: 15.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.4939, allocations: 239 kB / 0.5682 GB, free: 14.89 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4939, allocations: 0 / 0.5682 GB, free: 14.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004145/0.4943, allocations: 261.1 kB / 0.5685 GB, free: 14.63 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4943, allocations: 8 kB / 0.5685 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.4944, allocations: 4.062 kB / 0.5685 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.4944, allocations: 3.938 kB / 0.5685 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.729e-05/0.4945, allocations: 11.98 kB / 0.5685 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4945, allocations: 4 kB / 0.5685 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.495e-05/0.4946, allocations: 15.84 kB / 0.5685 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.4946, allocations: 11.94 kB / 0.5685 GB, free: 14.57 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.0001/0.4947, allocations: 121.8 kB / 0.5686 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.4948, allocations: 15.81 kB / 0.5686 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000518/0.4953, allocations: 314.6 kB / 0.5689 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4953, allocations: 7.984 kB / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4953, allocations: 0 / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.4953, allocations: 0 / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.4956, allocations: 265.2 kB / 0.5692 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.4956, allocations: 0 / 0.5692 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.4957, allocations: 8 kB / 0.5692 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4957, allocations: 0 / 0.5692 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.4957, allocations: 11.92 kB / 0.5692 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.4957, allocations: 4 kB / 0.5692 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4957, allocations: 0 / 0.5692 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.4961, allocations: 358.9 kB / 0.5696 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-05/0.4962, allocations: 116.7 kB / 0.5697 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.4962, allocations: 7.938 kB / 0.5697 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.4964, allocations: 7.938 kB / 0.5697 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.4964, allocations: 3.984 kB / 0.5697 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.4964, allocations: 8 kB / 0.5697 GB, free: 13.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 4.505e-05/0.4965, allocations: 91.7 kB / 0.5698 GB, free: 13.16 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4965, allocations: 0 / 0.5698 GB, free: 13.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002259/0.4987, allocations: 1.109 MB / 0.5709 GB, free: 12.05 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.004889/0.5036, allocations: 2.465 MB / 0.5733 GB, free: 9.559 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.5041, allocations: 257.3 kB / 0.5735 GB, free: 9.301 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5042, allocations: 4 kB / 0.5735 GB, free: 9.297 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.5044, allocations: 149.6 kB / 0.5737 GB, free: 9.145 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009225/0.5053, allocations: 140 kB / 0.5738 GB, free: 9.012 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.5071, allocations: 0.8235 MB / 0.5746 GB, free: 8.141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.5073, allocations: 0.7285 MB / 0.5753 GB, free: 7.387 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 8.043e-05/0.5074, allocations: 11.98 kB / 0.5753 GB, free: 7.375 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.5075, allocations: 43.42 kB / 0.5754 GB, free: 7.332 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5075, allocations: 0 / 0.5754 GB, free: 7.332 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2304/0.7379, allocations: 32.53 MB / 0.6071 GB, free: 155.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.176/9.914, allocations: 3 kB / 0.6071 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)