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.001262/0.001262, allocations: 110.8 kB / 16.41 MB, free: 5.973 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.0013/0.0013, allocations: 187.1 kB / 17.35 MB, free: 5.586 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.497/1.497, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04698/0.04698, allocations: 9.096 MB / 279.7 MB, free: 2.941 MB / 222.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.001554/0.001554, allocations: 75.8 kB / 388.1 MB, free: 47.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1159, allocations: 48.17 MB / 436.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02007/0.136, allocations: 17.92 MB / 454.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.1538, allocations: 16.99 MB / 471.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002572/0.1541, allocations: 0 / 471.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009986/0.1551, allocations: 318.5 kB / 471.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006963/0.1559, allocations: 230.7 kB / 471.7 MB, free: 4.031 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.02288/0.1787, allocations: 7.462 MB / 479.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005503/0.1793, allocations: 302.3 kB / 479.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.764e-05/0.1794, allocations: 13.69 kB / 479.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.1797, allocations: 123.5 kB / 479.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.1798, allocations: 67.67 kB / 479.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.1799, allocations: 0 / 479.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02256/0.2024, allocations: 10.14 MB / 489.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.742e-05/0.2025, allocations: 11.94 kB / 489.8 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.2028, allocations: 87.53 kB / 489.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.2183, allocations: 4.37 MB / 494.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.2184, allocations: 4 kB / 494.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2184, allocations: 0 / 494.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.2184, allocations: 0 / 494.3 MB, free: 13.43 MB / 382.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.003411/0.2218, allocations: 0.9824 MB / 495.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/0.2219, allocations: 12.03 kB / 495.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.675e-05/0.222, allocations: 11.81 kB / 495.3 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.2222, allocations: 182.8 kB / 495.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.2223, allocations: 8 kB / 495.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.2223, allocations: 7.938 kB / 495.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.2227, allocations: 172.1 kB / 495.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2227, allocations: 0 / 495.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2227, allocations: 0 / 495.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.2228, allocations: 7.984 kB / 495.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.2231, allocations: 111.9 kB / 495.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009993/0.2241, allocations: 0.5355 MB / 496.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.2244, allocations: 130.5 kB / 496.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.2247, allocations: 124.8 kB / 496.6 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3923/0.617, allocations: 85.21 MB / 0.5681 GB, free: 50.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.6171, allocations: 30.56 kB / 0.5682 GB, free: 50.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 3.987e-06/0.6171, allocations: 0 / 0.5682 GB, free: 50.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.000628/0.6178, allocations: 371.3 kB / 0.5685 GB, free: 50.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.754e-05/0.6178, allocations: 51.41 kB / 0.5686 GB, free: 50.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.813e-05/0.6179, allocations: 126 kB / 0.5687 GB, free: 50.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.6179, allocations: 25.7 kB / 0.5687 GB, free: 50.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.6179, allocations: 93.86 kB / 0.5688 GB, free: 50.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.117e-05/0.618, allocations: 130.9 kB / 0.5689 GB, free: 50.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/0.618, allocations: 41.61 kB / 0.569 GB, free: 50.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.6181, allocations: 330.8 kB / 0.5693 GB, free: 49.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.6182, allocations: 87.7 kB / 0.5694 GB, free: 49.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.6184, allocations: 127.2 kB / 0.5695 GB, free: 49.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.6187, allocations: 223.3 kB / 0.5697 GB, free: 49.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6187, allocations: 0 / 0.5697 GB, free: 49.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003386/0.619, allocations: 265.2 kB / 0.57 GB, free: 49.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.619, allocations: 4 kB / 0.57 GB, free: 49.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.6191, allocations: 3.984 kB / 0.57 GB, free: 49.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.6191, allocations: 10 kB / 0.57 GB, free: 49.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.609e-05/0.6192, allocations: 8 kB / 0.57 GB, free: 49.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.6192, allocations: 4.062 kB / 0.57 GB, free: 49.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.789e-05/0.6193, allocations: 27.73 kB / 0.57 GB, free: 49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.6193, allocations: 4 kB / 0.57 GB, free: 49 MB / 414.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 7.186e-05/0.6194, allocations: 126.7 kB / 0.5701 GB, free: 48.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.805e-05/0.6194, allocations: 15.81 kB / 0.5702 GB, free: 48.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004501/0.6199, allocations: 321.4 kB / 0.5705 GB, free: 48.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.6199, allocations: 0 / 0.5705 GB, free: 48.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.6199, allocations: 0 / 0.5705 GB, free: 48.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-05/0.6199, allocations: 104.8 kB / 0.5706 GB, free: 48.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.62, allocations: 7.641 kB / 0.5706 GB, free: 48.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.6201, allocations: 8 kB / 0.5706 GB, free: 48.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.6201, allocations: 11.92 kB / 0.5706 GB, free: 48.39 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003504/0.6205, allocations: 340.1 kB / 0.5709 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003484/0.6209, allocations: 424.7 kB / 0.5713 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001452/0.621, allocations: 119.9 kB / 0.5714 GB, free: 47.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.137e-05/0.6211, allocations: 100.8 kB / 0.5715 GB, free: 47.41 MB / 414.1 MB Notification: Performance of Backend: time 3.8e-07/0.6211, allocations: 0 / 0.5715 GB, free: 47.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004478/0.6255, allocations: 1.824 MB / 0.5733 GB, free: 45.92 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004953/0.626, allocations: 0.7512 MB / 0.574 GB, free: 45.12 MB / 414.1 MB Notification: Performance of Templates: time 0.02951/0.6556, allocations: 27.96 MB / 0.6014 GB, free: 17.24 MB / 414.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)