Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.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.Ancillary_StartValues,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_StartValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_StartValues",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.005502/0.005502, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001074/0.001074, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.509/1.509, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04986/0.04986, allocations: 9.095 MB / 279 MB, free: 12.08 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.001539/0.001539, allocations: 67.91 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3283, allocations: 48.16 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues): time 0.02528/0.3536, allocations: 18.08 MB / 453.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.3668, allocations: 11.07 MB / 464.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.367, allocations: 0 / 464.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.793e-05/0.3672, allocations: 12.98 kB / 464.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001184/0.3683, allocations: 371.8 kB / 464.6 MB, free: 0.543 MB / 334.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'. Notification: Performance of NFTyping.typeClassSections: time 0.02113/0.3895, allocations: 5.515 MB / 470.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000338/0.3898, allocations: 143.7 kB / 470.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.047e-05/0.3899, allocations: 8.266 kB / 470.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003278/0.3902, allocations: 94.16 kB / 470.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.3904, allocations: 48.56 kB / 470.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.3904, allocations: 8.344 kB / 470.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01919/0.4096, allocations: 8.113 MB / 478.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.525e-05/0.4097, allocations: 11.92 kB / 478.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.4098, allocations: 47.8 kB / 478.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.4218, allocations: 3.398 MB / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.4218, allocations: 0 / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.4218, allocations: 0 / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.4218, allocations: 3.938 kB / 482 MB, free: 1.781 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001739/0.4236, allocations: 0.827 MB / 482.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.4236, allocations: 12.03 kB / 482.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.455e-05/0.4237, allocations: 38.55 kB / 482.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.4239, allocations: 15.89 kB / 482.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.424, allocations: 182.9 kB / 483.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.424, allocations: 3.984 kB / 483.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.4241, allocations: 8 kB / 483.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.4245, allocations: 101.6 kB / 483.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.4245, allocations: 0 / 483.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.4245, allocations: 0 / 483.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4245, allocations: 3.938 kB / 483.2 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.4249, allocations: 103.9 kB / 483.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.4254, allocations: 320.8 kB / 483.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.4259, allocations: 110.6 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.4262, allocations: 68.73 kB / 483.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02483/0.451, allocations: 15.94 MB / 499.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.4511, allocations: 34.5 kB / 499.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 3.787e-06/0.4512, allocations: 4 kB / 499.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0009976/0.4522, allocations: 213.6 kB / 500 MB, free: 12.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.4522, allocations: 55.41 kB / 0.4883 GB, free: 12.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.4524, allocations: 133.4 kB / 0.4884 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.4524, allocations: 29.7 kB / 0.4885 GB, free: 12.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.4525, allocations: 96.12 kB / 0.4886 GB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.4526, allocations: 31.7 kB / 0.4886 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.4526, allocations: 25.7 kB / 0.4886 GB, free: 12.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.4528, allocations: 318.8 kB / 0.4889 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.453, allocations: 51.89 kB / 0.489 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.4532, allocations: 51.95 kB / 0.489 GB, free: 12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.4536, allocations: 104.8 kB / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.4536, allocations: 0 / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004543/0.4541, allocations: 157.9 kB / 0.4893 GB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.4541, allocations: 5.094 kB / 0.4893 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.4542, allocations: 0 / 0.4893 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.4542, allocations: 0 / 0.4893 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.4544, allocations: 27.97 kB / 0.4893 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.4544, allocations: 0 / 0.4893 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.4545, allocations: 27.91 kB / 0.4893 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.4546, allocations: 4 kB / 0.4893 GB, free: 11.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001052/0.4547, allocations: 121.7 kB / 0.4895 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.486e-05/0.4547, allocations: 15.84 kB / 0.4895 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007749/0.4555, allocations: 386.8 kB / 0.4898 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.4555, allocations: 12 kB / 0.4898 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4555, allocations: 0 / 0.4898 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4555, allocations: 0 / 0.4898 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.4559, allocations: 277.9 kB / 0.4901 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4559, allocations: 3.938 kB / 0.4901 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.4561, allocations: 35.84 kB / 0.4901 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4561, allocations: 0 / 0.4901 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.4561, allocations: 7.984 kB / 0.4902 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.4561, allocations: 3.984 kB / 0.4902 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4561, allocations: 8 kB / 0.4902 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.4568, allocations: 424.1 kB / 0.4906 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.339e-05/0.4569, allocations: 104.9 kB / 0.4907 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.4569, allocations: 4 kB / 0.4907 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.4571, allocations: 23.97 kB / 0.4907 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.15e-05/0.4571, allocations: 7.984 kB / 0.4907 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.4571, allocations: 8 kB / 0.4907 GB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.717e-05/0.4572, allocations: 99.27 kB / 0.4908 GB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4572, allocations: 0 / 0.4908 GB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001262/0.4585, allocations: 462.5 kB / 0.4913 GB, free: 9.613 MB / 382.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: 3 ($cse1.liq.phase,$cse1.vap.phase,$cse2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002776/0.4613, allocations: 1.58 MB / 0.4928 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.4619, allocations: 199.9 kB / 0.493 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4619, allocations: 0 / 0.493 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003149/0.4622, allocations: 171.8 kB / 0.4931 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.4626, allocations: 28.12 kB / 0.4932 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.4637, allocations: 0.5757 MB / 0.4937 GB, free: 6.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.464, allocations: 0.72 MB / 0.4944 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.526e-05/0.4641, allocations: 19.98 kB / 0.4945 GB, free: 6.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.4642, allocations: 43.42 kB / 0.4945 GB, free: 6.191 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4642, allocations: 0 / 0.4945 GB, free: 6.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04485/0.5091, allocations: 16.34 MB / 0.5105 GB, free: 5.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.879, allocations: 4.5 kB / 0.5105 GB, free: 5.848 MB / 398.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues_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_Ancillary_StartValues.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.pipe 2>&1)