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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues") translateModel(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007626/0.007625, allocations: 102.7 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.001623/0.001623, allocations: 190.7 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.584/1.584, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0507/0.0507, allocations: 9.096 MB / 279 MB, free: 12.06 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.001809/0.001809, allocations: 71.89 kB / 387.5 MB, free: 8.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3896, allocations: 48.14 MB / 435.6 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues): time 0.02257/0.4122, allocations: 18.1 MB / 453.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.4243, allocations: 11.06 MB / 464.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.4245, allocations: 1.062 kB / 464.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.347e-05/0.4246, allocations: 11.86 kB / 464.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001412/0.4261, allocations: 340.9 kB / 465.1 MB, free: 0.8125 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.02028/0.4463, allocations: 5.215 MB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.4467, allocations: 143.7 kB / 470.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.442e-05/0.4467, allocations: 8.281 kB / 470.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.447, allocations: 89.61 kB / 470.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.4471, allocations: 51.66 kB / 470.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.4472, allocations: 9.969 kB / 470.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01603/0.4632, allocations: 8.105 MB / 478.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.4633, allocations: 23.92 kB / 478.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.4635, allocations: 51.72 kB / 478.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.4746, allocations: 3.388 MB / 482.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4747, allocations: 0 / 482.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4747, allocations: 0 / 482.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.4747, allocations: 0 / 482.2 MB, free: 2.055 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.001671/0.4764, allocations: 0.799 MB / 483 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.4764, allocations: 12.03 kB / 483 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.4766, allocations: 19.83 kB / 483 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.4768, allocations: 174.9 kB / 483.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.4768, allocations: 8 kB / 483.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.4768, allocations: 0 / 483.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.4772, allocations: 101.5 kB / 483.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4772, allocations: 0 / 483.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.4772, allocations: 4 kB / 483.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.4773, allocations: 7.984 kB / 483.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.4777, allocations: 103.8 kB / 483.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005351/0.4782, allocations: 320.7 kB / 483.7 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.4787, allocations: 106.5 kB / 483.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.4789, allocations: 72.8 kB / 483.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02362/0.5026, allocations: 15.93 MB / 499.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.5027, allocations: 42.44 kB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 3.206e-06/0.5027, allocations: 0 / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0009916/0.5037, allocations: 217.8 kB / 0.4884 GB, free: 13.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.5037, allocations: 51.41 kB / 0.4884 GB, free: 13.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.5039, allocations: 133.4 kB / 0.4885 GB, free: 12.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.5039, allocations: 29.8 kB / 0.4886 GB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.825e-05/0.504, allocations: 92.06 kB / 0.4886 GB, free: 12.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/0.504, allocations: 27.56 kB / 0.4887 GB, free: 12.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.265e-05/0.5041, allocations: 25.7 kB / 0.4887 GB, free: 12.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5042, allocations: 322.8 kB / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.5044, allocations: 51.94 kB / 0.4891 GB, free: 12.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.5046, allocations: 47.95 kB / 0.4891 GB, free: 12.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.505, allocations: 108.8 kB / 0.4892 GB, free: 12.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.505, allocations: 0 / 0.4892 GB, free: 12.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004482/0.5055, allocations: 145.5 kB / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.5055, allocations: 11.94 kB / 0.4894 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5055, allocations: 0 / 0.4894 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.5055, allocations: 0 / 0.4894 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.5057, allocations: 35.97 kB / 0.4894 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.5057, allocations: 0 / 0.4894 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.5058, allocations: 19.91 kB / 0.4894 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.5059, allocations: 7.938 kB / 0.4894 GB, free: 12.04 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.0001045/0.506, allocations: 117.8 kB / 0.4895 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/0.506, allocations: 23.75 kB / 0.4895 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007774/0.5068, allocations: 395 kB / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.5069, allocations: 3.984 kB / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.5069, allocations: 0 / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5069, allocations: 0 / 0.4899 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.5072, allocations: 281.9 kB / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.5073, allocations: 0 / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.5074, allocations: 31.91 kB / 0.4902 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.5074, allocations: 11.88 kB / 0.4902 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.5075, allocations: 4 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.5075, allocations: 0 / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.5075, allocations: 3.984 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006749/0.5081, allocations: 424 kB / 0.4907 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.894e-05/0.5083, allocations: 112.8 kB / 0.4908 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.5083, allocations: 4 kB / 0.4908 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.5084, allocations: 11.98 kB / 0.4908 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.5085, allocations: 11.98 kB / 0.4908 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.5085, allocations: 7.984 kB / 0.4908 GB, free: 10.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.461e-05/0.5086, allocations: 107.2 kB / 0.4909 GB, free: 10.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5086, allocations: 0 / 0.4909 GB, free: 10.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001675/0.5103, allocations: 447.8 kB / 0.4913 GB, free: 9.984 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.002654/0.513, allocations: 0.7109 MB / 0.492 GB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006017/0.5136, allocations: 195.8 kB / 0.4922 GB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5136, allocations: 4 kB / 0.4922 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.5139, allocations: 167.9 kB / 0.4924 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.5143, allocations: 32.25 kB / 0.4924 GB, free: 8.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005934/0.5149, allocations: 349.7 kB / 0.4927 GB, free: 8.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.5152, allocations: 0.7277 MB / 0.4934 GB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.829e-05/0.5153, allocations: 15.98 kB / 0.4935 GB, free: 7.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.5154, allocations: 15.44 kB / 0.4935 GB, free: 7.723 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5154, allocations: 4 kB / 0.4935 GB, free: 7.719 MB / 382.1 MB Notification: Performance of Templates: time 0.02223/0.5376, allocations: 14.35 MB / 0.5075 GB, free: 9.363 MB / 398.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_StartValues.pipe 2>&1)