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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007166/0.007166, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001447/0.001447, allocations: 193.6 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.433/1.433, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04914/0.04914, allocations: 9.096 MB / 279 MB, free: 12.11 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.001672/0.001672, allocations: 75.89 kB / 387.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3006, allocations: 48.15 MB / 435.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01887/0.3195, allocations: 17.91 MB / 453.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.336, allocations: 17 MB / 470.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.3363, allocations: 1.594 kB / 470.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007934/0.3371, allocations: 288.3 kB / 470.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005154/0.3376, allocations: 204.2 kB / 471 MB, free: 12.2 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.01971/0.3574, allocations: 7.104 MB / 478.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004399/0.3578, allocations: 294.4 kB / 478.4 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.739e-05/0.3579, allocations: 9.688 kB / 478.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.3581, allocations: 127.4 kB / 478.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.3583, allocations: 71.7 kB / 478.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.3583, allocations: 4 kB / 478.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01853/0.3768, allocations: 10.12 MB / 488.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.336e-05/0.3769, allocations: 19.86 kB / 488.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.3771, allocations: 87.61 kB / 488.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.3902, allocations: 4.38 MB / 493.2 MB, free: 7.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.3902, allocations: 4 kB / 493.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.003e-06/0.3902, allocations: 3.984 kB / 493.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.3903, allocations: 7.938 kB / 493.2 MB, free: 7.145 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.002349/0.3926, allocations: 1.017 MB / 494.2 MB, free: 6.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3927, allocations: 8.031 kB / 494.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/0.3927, allocations: 19.86 kB / 494.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3929, allocations: 182.8 kB / 494.4 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3929, allocations: 4 kB / 494.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.3929, allocations: 4 kB / 494.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.3932, allocations: 172.1 kB / 494.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3932, allocations: 0 / 494.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3933, allocations: 0 / 494.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.3933, allocations: 7.984 kB / 494.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.3935, allocations: 103.9 kB / 494.7 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007134/0.3942, allocations: 0.5434 MB / 495.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.3945, allocations: 130.5 kB / 495.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3947, allocations: 120.8 kB / 495.5 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1354/0.5301, allocations: 85.21 MB / 0.5671 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.5302, allocations: 34.56 kB / 0.5671 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.104e-06/0.5302, allocations: 4 kB / 0.5671 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007298/0.5309, allocations: 360.9 kB / 0.5675 GB, free: 280 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.531, allocations: 51.41 kB / 0.5675 GB, free: 216 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.5311, allocations: 121.8 kB / 0.5677 GB, free: 84 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.5311, allocations: 33.64 kB / 0.5677 GB, free: 44 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.5312, allocations: 89.08 kB / 0.5678 GB, free: 15.95 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.566e-05/0.5313, allocations: 142.7 kB / 0.5679 GB, free: 15.81 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-05/0.5313, allocations: 45.69 kB / 0.5679 GB, free: 15.76 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5315, allocations: 326.8 kB / 0.5683 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.5316, allocations: 83.95 kB / 0.5683 GB, free: 15.35 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.5318, allocations: 122.4 kB / 0.5685 GB, free: 15.22 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.5322, allocations: 235 kB / 0.5687 GB, free: 14.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5322, allocations: 0 / 0.5687 GB, free: 14.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004273/0.5326, allocations: 273.2 kB / 0.5689 GB, free: 14.71 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.5327, allocations: 4 kB / 0.5689 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.5327, allocations: 4.062 kB / 0.5689 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.5327, allocations: 7.938 kB / 0.569 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.296e-05/0.5328, allocations: 11.98 kB / 0.569 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.5328, allocations: 0 / 0.569 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.5329, allocations: 23.83 kB / 0.569 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.5329, allocations: 4 kB / 0.569 GB, free: 14.66 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.0001017/0.533, allocations: 125.8 kB / 0.5691 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.5331, allocations: 15.91 kB / 0.5691 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005242/0.5336, allocations: 322.7 kB / 0.5694 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.5337, allocations: 7.922 kB / 0.5694 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5337, allocations: 96 / 0.5694 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5337, allocations: 3.938 kB / 0.5694 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.534, allocations: 269.2 kB / 0.5697 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.534, allocations: 0 / 0.5697 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.153e-05/0.534, allocations: 11.98 kB / 0.5697 GB, free: 13.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.534, allocations: 4 kB / 0.5697 GB, free: 13.85 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.5341, allocations: 0 / 0.5697 GB, free: 13.85 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.5341, allocations: 3.938 kB / 0.5697 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5341, allocations: 3.938 kB / 0.5697 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004359/0.5345, allocations: 355.1 kB / 0.5701 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.189e-05/0.5346, allocations: 112.9 kB / 0.5702 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.5346, allocations: 4 kB / 0.5702 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.5348, allocations: 11.92 kB / 0.5702 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.5348, allocations: 4 kB / 0.5702 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.5348, allocations: 7.984 kB / 0.5702 GB, free: 13.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.146e-05/0.5349, allocations: 91.28 kB / 0.5703 GB, free: 13.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5349, allocations: 0 / 0.5703 GB, free: 13.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002631/0.5375, allocations: 1.125 MB / 0.5714 GB, free: 12.1 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.004972/0.5425, allocations: 1.696 MB / 0.573 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004812/0.543, allocations: 253.3 kB / 0.5733 GB, free: 10.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.543, allocations: 0 / 0.5733 GB, free: 10.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.5432, allocations: 145.7 kB / 0.5734 GB, free: 9.992 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008603/0.5441, allocations: 147.9 kB / 0.5736 GB, free: 9.852 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006127/0.5447, allocations: 346.1 kB / 0.5739 GB, free: 9.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.545, allocations: 0.7208 MB / 0.5746 GB, free: 8.734 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 7.545e-05/0.5451, allocations: 15.98 kB / 0.5746 GB, free: 8.719 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.125e-05/0.5451, allocations: 15.44 kB / 0.5746 GB, free: 8.703 MB / 478.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5452, allocations: 0 / 0.5746 GB, free: 8.703 MB / 478.1 MB Notification: Performance of Templates: time 0.2489/0.794, allocations: 29.91 MB / 0.6038 GB, free: 176.1 MB / 494.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)