Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.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.BaseProps_sweep,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep") translateModel(HelmholtzMedia.Examples.BaseProps_sweep,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 109 kB / 16.37 MB, free: 6.477 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.001075/0.001075, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.3/1.3, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04726/0.04726, allocations: 9.092 MB / 279.6 MB, free: 2.984 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.001483/0.001484, allocations: 64.41 kB / 339.5 MB, free: 7.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.199, allocations: 48.15 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.BaseProps_sweep): time 0.016/0.215, allocations: 17.89 MB / 405.5 MB, free: 38.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02019/0.2352, allocations: 32.21 MB / 437.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.2354, allocations: 0 / 437.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008601/0.2363, allocations: 415.4 kB / 438.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003235/0.2367, allocations: 135.1 kB / 438.3 MB, free: 8.711 MB / 318.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.01924/0.2559, allocations: 9.449 MB / 447.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.2564, allocations: 382.3 kB / 448.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.379e-05/0.2565, allocations: 20.39 kB / 448.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.2568, allocations: 175.3 kB / 448.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.257, allocations: 115.5 kB / 448.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.257, allocations: 12 kB / 448.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01835/0.2754, allocations: 11.46 MB / 459.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.445e-05/0.2755, allocations: 39.84 kB / 459.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.2757, allocations: 115.5 kB / 460 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.2877, allocations: 4.744 MB / 464.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2877, allocations: 0 / 464.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2877, allocations: 0 / 464.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2877, allocations: 0 / 464.8 MB, free: 14.17 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.002073/0.2898, allocations: 1.131 MB / 465.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2899, allocations: 16.03 kB / 465.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.2901, allocations: 37.45 kB / 465.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.2904, allocations: 226.6 kB / 466.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.2904, allocations: 15.94 kB / 466.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.2905, allocations: 8 kB / 466.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005868/0.2911, allocations: 255.6 kB / 466.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2911, allocations: 0 / 466.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.2911, allocations: 4 kB / 466.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2911, allocations: 4 kB / 466.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006326/0.2918, allocations: 236.7 kB / 466.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000975/0.2927, allocations: 1.071 MB / 467.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000518/0.2933, allocations: 254.3 kB / 468 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.2936, allocations: 155.4 kB / 468.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08165/0.3753, allocations: 46.25 MB / 0.5023 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.3753, allocations: 34.56 kB / 0.5024 GB, free: 4.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 3.717e-06/0.3753, allocations: 0 / 0.5024 GB, free: 4.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001492/0.3768, allocations: 470.4 kB / 0.5028 GB, free: 3.902 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.3769, allocations: 136.5 kB / 0.5029 GB, free: 3.738 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.3771, allocations: 175.9 kB / 0.5031 GB, free: 3.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.3771, allocations: 33.7 kB / 0.5031 GB, free: 3.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.3772, allocations: 116.6 kB / 0.5033 GB, free: 3.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.3773, allocations: 98.58 kB / 0.5034 GB, free: 3.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.991e-05/0.3773, allocations: 37.69 kB / 0.5034 GB, free: 3.262 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3775, allocations: 342.8 kB / 0.5037 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.3777, allocations: 99.94 kB / 0.5038 GB, free: 2.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.378, allocations: 158.6 kB / 0.504 GB, free: 2.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000548/0.3786, allocations: 289.6 kB / 0.5042 GB, free: 2.344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3786, allocations: 1.562 kB / 0.5042 GB, free: 2.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006855/0.3793, allocations: 314 kB / 0.5045 GB, free: 2.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3793, allocations: 4.281 kB / 0.5045 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3794, allocations: 11.94 kB / 0.5046 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3794, allocations: 3.938 kB / 0.5046 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.3796, allocations: 47.89 kB / 0.5046 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3797, allocations: 4 kB / 0.5046 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.3799, allocations: 35.81 kB / 0.5046 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.3799, allocations: 7.938 kB / 0.5046 GB, free: 1.918 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.sat.vap.phase,medium.sat.liq.phase,medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001198/0.38, allocations: 150.3 kB / 0.5048 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.3801, allocations: 19.72 kB / 0.5048 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006255/0.3808, allocations: 361 kB / 0.5052 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.3808, allocations: 7.984 kB / 0.5052 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3808, allocations: 0 / 0.5052 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3808, allocations: 4 kB / 0.5052 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004986/0.3813, allocations: 325.6 kB / 0.5055 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3813, allocations: 5.812 kB / 0.5055 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.3815, allocations: 39.89 kB / 0.5055 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.3816, allocations: 4 kB / 0.5055 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.3816, allocations: 4 kB / 0.5055 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3816, allocations: 4 kB / 0.5055 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3816, allocations: 0 / 0.5055 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000768/0.3824, allocations: 0.6429 MB / 0.5062 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.037e-05/0.3824, allocations: 104.8 kB / 0.5063 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.3825, allocations: 0 / 0.5063 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.3828, allocations: 27.97 kB / 0.5063 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.159e-05/0.3829, allocations: 23.91 kB / 0.5063 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3829, allocations: 4 kB / 0.5063 GB, free: 116 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.383, allocations: 124.2 kB / 0.5064 GB, free: 15.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.383, allocations: 0 / 0.5064 GB, free: 15.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001795/0.3848, allocations: 0.7963 MB / 0.5072 GB, free: 15.19 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($cse1.phase,medium.state.phase,medium.sat.liq.phase,medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.003052/0.3879, allocations: 1.192 MB / 0.5084 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006747/0.3886, allocations: 279.9 kB / 0.5086 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3886, allocations: 4.062 kB / 0.5086 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.389, allocations: 163.8 kB / 0.5088 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008454/0.3898, allocations: 99.88 kB / 0.5089 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007933/0.3906, allocations: 480.9 kB / 0.5094 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3909, allocations: 0.7402 MB / 0.5101 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001634/0.3911, allocations: 48.48 kB / 0.5101 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.3912, allocations: 23.44 kB / 0.5101 GB, free: 12.12 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3912, allocations: 0 / 0.5101 GB, free: 12.12 MB / 414.1 MB Notification: Performance of Templates: time 0.164/0.5552, allocations: 24.15 MB / 0.5337 GB, free: 135.6 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe 2>&1)