Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_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: "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004172/0.004172, allocations: 104.4 kB / 15.74 MB, free: 5.598 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.001034/0.001034, allocations: 191.8 kB / 16.67 MB, free: 5.527 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.304/1.304, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0466/0.0466, allocations: 9.093 MB / 279 MB, free: 2.938 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.002392/0.002392, allocations: 68.17 kB / 386.9 MB, free: 47.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1037, allocations: 48.18 MB / 435.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.0175/0.1212, allocations: 16.99 MB / 452.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1325, allocations: 11.09 MB / 463.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.445e-05/0.1326, allocations: 0 / 463.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000768/0.1334, allocations: 263.2 kB / 463.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.1336, allocations: 35.7 kB / 463.5 MB, free: 11.64 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.01599/0.1496, allocations: 5.791 MB / 469.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.1498, allocations: 79.53 kB / 469.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.503e-05/0.1498, allocations: 7.984 kB / 469.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.953e-05/0.1499, allocations: 39.8 kB / 469.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.318e-05/0.15, allocations: 15.88 kB / 469.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.15, allocations: 4 kB / 469.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01517/0.1652, allocations: 8.64 MB / 478.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.165e-05/0.1653, allocations: 4 kB / 478.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.723e-05/0.1654, allocations: 27.81 kB / 478.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009363/0.1747, allocations: 3.652 MB / 481.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.1748, allocations: 0 / 481.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1748, allocations: 3.938 kB / 481.7 MB, free: 9.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1748, allocations: 0 / 481.7 MB, free: 9.355 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001491/0.1763, allocations: 0.7916 MB / 482.5 MB, free: 8.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1764, allocations: 8.031 kB / 482.5 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.869e-05/0.1764, allocations: 34.56 kB / 482.6 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/0.1764, allocations: 11.84 kB / 482.6 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.1766, allocations: 167 kB / 482.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.1766, allocations: 8 kB / 482.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.1766, allocations: 4 kB / 482.8 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.1768, allocations: 49.69 kB / 482.8 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1768, allocations: 0 / 482.8 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-06/0.1768, allocations: 3.984 kB / 482.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1768, allocations: 4 kB / 482.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.567e-05/0.1769, allocations: 27.92 kB / 482.8 MB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002074/0.1771, allocations: 177.6 kB / 483 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.357e-05/0.1772, allocations: 58.5 kB / 483.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.1772, allocations: 36.88 kB / 483.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06832/0.2455, allocations: 41.39 MB / 0.5122 GB, free: 7.102 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.94e-05/0.2456, allocations: 42.5 kB / 0.5123 GB, free: 7.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 3.226e-06/0.2457, allocations: 0 / 0.5123 GB, free: 7.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003471/0.246, allocations: 117.6 kB / 0.5124 GB, free: 6.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.2461, allocations: 55.41 kB / 0.5124 GB, free: 6.863 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.775e-05/0.2462, allocations: 101.8 kB / 0.5125 GB, free: 6.754 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.2462, allocations: 25.7 kB / 0.5125 GB, free: 6.723 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.639e-05/0.2462, allocations: 80.14 kB / 0.5126 GB, free: 6.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.2463, allocations: 39.55 kB / 0.5127 GB, free: 6.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.2464, allocations: 25.72 kB / 0.5127 GB, free: 6.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2465, allocations: 318.8 kB / 0.513 GB, free: 6.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.512e-05/0.2466, allocations: 20 kB / 0.513 GB, free: 6.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.565e-05/0.2466, allocations: 31.98 kB / 0.513 GB, free: 6.199 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.216e-05/0.2467, allocations: 72.52 kB / 0.5131 GB, free: 6.129 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2467, allocations: 3.938 kB / 0.5131 GB, free: 6.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001241/0.2468, allocations: 89.59 kB / 0.5132 GB, free: 6.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2469, allocations: 13.97 kB / 0.5132 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2469, allocations: 4.062 kB / 0.5132 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2469, allocations: 0 / 0.5132 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.2469, allocations: 0 / 0.5132 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.2469, allocations: 3.984 kB / 0.5132 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.914e-05/0.247, allocations: 3.906 kB / 0.5132 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.247, allocations: 4 kB / 0.5132 GB, free: 6.004 MB / 414.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: 2 (state_ps.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * 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 prepare postOptimizeDAE: time 9.237e-05/0.2471, allocations: 109.8 kB / 0.5133 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.2471, allocations: 7.938 kB / 0.5133 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.2473, allocations: 163.4 kB / 0.5135 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.2474, allocations: 3.984 kB / 0.5135 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2474, allocations: 3.984 kB / 0.5135 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2474, allocations: 0 / 0.5135 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.2475, allocations: 169.7 kB / 0.5137 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2475, allocations: 3.984 kB / 0.5137 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.2475, allocations: 0 / 0.5137 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.2476, allocations: 3.938 kB / 0.5137 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.2476, allocations: 0 / 0.5137 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2476, allocations: 8 kB / 0.5137 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2476, allocations: 4.031 kB / 0.5137 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.2477, allocations: 92.97 kB / 0.5138 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.2478, allocations: 81.05 kB / 0.5138 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.2478, allocations: 7.938 kB / 0.5138 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.996e-05/0.2478, allocations: 0 / 0.5138 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.414e-05/0.2479, allocations: 3.984 kB / 0.5139 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.2479, allocations: 0 / 0.5139 GB, free: 5.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.191e-05/0.2479, allocations: 103.3 kB / 0.514 GB, free: 5.129 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2479, allocations: 3.938 kB / 0.514 GB, free: 5.125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002442/0.2504, allocations: 0.8628 MB / 0.5148 GB, free: 4.262 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: 1 (state_ps.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.004912/0.2553, allocations: 1.881 MB / 0.5166 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.2555, allocations: 59.97 kB / 0.5167 GB, free: 2.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2555, allocations: 0 / 0.5167 GB, free: 2.289 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.309e-05/0.2555, allocations: 19.92 kB / 0.5167 GB, free: 2.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/0.256, allocations: 56 kB / 0.5168 GB, free: 2.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.2585, allocations: 1.643 MB / 0.5184 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2095/0.468, allocations: 0.6837 MB / 0.519 GB, free: 97.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.256e-05/0.4681, allocations: 4.812 kB / 0.519 GB, free: 97.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.27e-05/0.4682, allocations: 19.11 kB / 0.5191 GB, free: 97.8 MB / 414.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4682, allocations: 0.5312 kB / 0.5191 GB, free: 97.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06379/0.532, allocations: 25.79 MB / 0.5442 GB, free: 81.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.501/9.033, allocations: 3.953 kB / 0.5443 GB, free: 81.45 MB / 414.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe 2>&1)