Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.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.Parameter.State_ps_parameter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter") translateModel(HelmholtzMedia.Examples.Parameter.State_ps_parameter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0056/0.0056, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00132/0.00132, allocations: 192.8 kB / 16.67 MB, free: 5.52 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.302/1.302, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04638/0.04638, allocations: 9.097 MB / 279 MB, free: 2.957 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.001496/0.001496, allocations: 68.95 kB / 387.4 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06482/0.06633, allocations: 48.17 MB / 435.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.01618/0.08254, allocations: 16.89 MB / 452.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00989/0.09247, allocations: 10.47 MB / 463 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.226e-05/0.09253, allocations: 0 / 463 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006015/0.09314, allocations: 267.3 kB / 463.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.446e-05/0.09323, allocations: 27.78 kB / 463.2 MB, free: 11.9 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: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.01322/0.1065, allocations: 5.749 MB / 469 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.935e-05/0.1066, allocations: 47.73 kB / 469 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.1066, allocations: 0 / 469 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.968e-05/0.1067, allocations: 31.8 kB / 469.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.91e-05/0.1068, allocations: 19.92 kB / 469.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.1068, allocations: 0 / 469.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01382/0.1206, allocations: 8.749 MB / 477.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.642e-05/0.1206, allocations: 3.984 kB / 477.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.331e-05/0.1207, allocations: 11.94 kB / 477.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007819/0.1285, allocations: 3.617 MB / 481.5 MB, free: 9.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1286, allocations: 0 / 481.5 MB, free: 9.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1286, allocations: 0 / 481.5 MB, free: 9.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1286, allocations: 0 / 481.5 MB, free: 9.645 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001345/0.1299, allocations: 0.7565 MB / 482.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.13, allocations: 8.031 kB / 482.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.13, allocations: 11.88 kB / 482.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1301, allocations: 170.9 kB / 482.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.1302, allocations: 0 / 482.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.1302, allocations: 0 / 482.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.1303, allocations: 41.69 kB / 482.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.1303, allocations: 0 / 482.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.1303, allocations: 0 / 482.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.1303, allocations: 0 / 482.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.817e-05/0.1304, allocations: 19.92 kB / 482.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.1305, allocations: 165.7 kB / 482.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.85e-05/0.1306, allocations: 34.52 kB / 482.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.403e-05/0.1306, allocations: 20.88 kB / 482.7 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05329/0.1839, allocations: 33.03 MB / 0.5036 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.184, allocations: 30.56 kB / 0.5037 GB, free: 1.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.665e-06/0.184, allocations: 4 kB / 0.5037 GB, free: 1.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001922/0.1842, allocations: 77.56 kB / 0.5037 GB, free: 1.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.1842, allocations: 51.41 kB / 0.5038 GB, free: 1.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.1843, allocations: 97.84 kB / 0.5039 GB, free: 1.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.1843, allocations: 25.7 kB / 0.5039 GB, free: 1.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.1844, allocations: 84.3 kB / 0.504 GB, free: 1.031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.1844, allocations: 23.66 kB / 0.504 GB, free: 1.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.1844, allocations: 17.7 kB / 0.504 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1845, allocations: 314.8 kB / 0.5043 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.1846, allocations: 11.94 kB / 0.5043 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.771e-05/0.1846, allocations: 15.98 kB / 0.5044 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.263e-05/0.1846, allocations: 32.86 kB / 0.5044 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1846, allocations: 0 / 0.5044 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.094e-05/0.1847, allocations: 69.86 kB / 0.5045 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1848, allocations: 8 kB / 0.5045 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1848, allocations: 7.922 kB / 0.5045 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1848, allocations: 0 / 0.5045 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.1848, allocations: 0 / 0.5045 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.1848, allocations: 3.984 kB / 0.5045 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.065e-05/0.1848, allocations: 0 / 0.5045 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.1849, allocations: 0 / 0.5045 GB, free: 0.5117 MB / 398.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: 1 (inletState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.244e-05/0.1849, allocations: 116.9 kB / 0.5046 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-06/0.185, allocations: 0 / 0.5046 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.1851, allocations: 182.8 kB / 0.5048 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.145e-05/0.1852, allocations: 180.2 kB / 0.5049 GB, free: 0 / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.988e-05/0.1853, allocations: 180.3 kB / 0.5051 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-05/0.1853, allocations: 184.2 kB / 0.5053 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.1856, allocations: 413.1 kB / 0.5057 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.149e-05/0.1856, allocations: 112.9 kB / 0.5058 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.329e-05/0.1856, allocations: 105 kB / 0.5059 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-05/0.1857, allocations: 180.3 kB / 0.5061 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.1858, allocations: 188.1 kB / 0.5062 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.137e-05/0.1858, allocations: 176.3 kB / 0.5064 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.284e-05/0.1859, allocations: 188.2 kB / 0.5066 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.1861, allocations: 299.8 kB / 0.5069 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.218e-05/0.1861, allocations: 186 kB / 0.507 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.1862, allocations: 184.4 kB / 0.5072 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.69e-05/0.1863, allocations: 104.9 kB / 0.5073 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.1864, allocations: 188.3 kB / 0.5075 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.1864, allocations: 101 kB / 0.5076 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.172e-05/0.1865, allocations: 103.2 kB / 0.5077 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.1865, allocations: 0 / 0.5077 GB, free: 12.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002046/0.1885, allocations: 0.8588 MB / 0.5085 GB, free: 12.12 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.003144/0.1917, allocations: 1.415 MB / 0.5099 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.329e-05/0.1918, allocations: 19.98 kB / 0.5099 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1918, allocations: 0 / 0.5099 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.558e-06/0.1918, allocations: 7.938 kB / 0.5099 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.1923, allocations: 487.9 kB / 0.5104 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002572/0.1926, allocations: 199 kB / 0.5106 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.1928, allocations: 0.6768 MB / 0.5113 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.746e-05/0.1929, allocations: 256 / 0.5113 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.096e-05/0.1929, allocations: 15.44 kB / 0.5113 GB, free: 9.238 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1929, allocations: 0 / 0.5113 GB, free: 9.238 MB / 414.1 MB Notification: Performance of Templates: time 0.1891/0.382, allocations: 23.43 MB / 0.5342 GB, free: 93.38 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe 2>&1)