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.005522/0.005522, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.001196/0.001196, allocations: 199.3 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.355/1.355, allocations: 205.1 MB / 222.6 MB, free: 4.395 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04654/0.04654, allocations: 9.104 MB / 279 MB, free: 11.95 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.001602/0.001602, allocations: 71.91 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2354, allocations: 48.16 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.01629/0.2517, allocations: 16.99 MB / 452.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009927/0.2617, allocations: 11.09 MB / 463.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.2618, allocations: 5.094 kB / 463.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007722/0.2627, allocations: 293.1 kB / 463.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.977e-05/0.2628, allocations: 42.14 kB / 463.5 MB, free: 1.52 MB / 334.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.01454/0.2773, allocations: 6.07 MB / 469.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.2775, allocations: 83.84 kB / 469.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.847e-05/0.2775, allocations: 10.7 kB / 469.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.452e-05/0.2776, allocations: 31.84 kB / 469.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.28e-05/0.2776, allocations: 19.86 kB / 469.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-06/0.2776, allocations: 0 / 469.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01377/0.2914, allocations: 8.65 MB / 478.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.617e-05/0.2915, allocations: 3.938 kB / 478.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.2915, allocations: 19.94 kB / 478.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008448/0.3, allocations: 3.652 MB / 482.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3, allocations: 0 / 482.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3, allocations: 0 / 482.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3001, allocations: 0 / 482.1 MB, free: 1.773 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001411/0.3015, allocations: 0.78 MB / 482.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3015, allocations: 8.031 kB / 482.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.3016, allocations: 50.42 kB / 482.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.3016, allocations: 7.844 kB / 482.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3017, allocations: 171 kB / 483.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3017, allocations: 4 kB / 483.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.3017, allocations: 0 / 483.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3018, allocations: 53.69 kB / 483.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.3019, allocations: 4 kB / 483.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.3019, allocations: 0 / 483.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3019, allocations: 0 / 483.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.101e-05/0.3019, allocations: 35.86 kB / 483.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.3021, allocations: 177.6 kB / 483.3 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.336e-05/0.3022, allocations: 54.56 kB / 483.4 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.3022, allocations: 32.89 kB / 483.4 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06228/0.3645, allocations: 41.4 MB / 0.5125 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.3646, allocations: 42.42 kB / 0.5126 GB, free: 15.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.274e-06/0.3646, allocations: 0 / 0.5126 GB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002765/0.3649, allocations: 122 kB / 0.5127 GB, free: 15.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.3649, allocations: 51.41 kB / 0.5127 GB, free: 15.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.365, allocations: 101.8 kB / 0.5128 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.365, allocations: 29.64 kB / 0.5129 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.701e-05/0.3651, allocations: 80.3 kB / 0.5129 GB, free: 15.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.3651, allocations: 47.39 kB / 0.513 GB, free: 15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.3652, allocations: 21.7 kB / 0.513 GB, free: 14.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.3652, allocations: 314.8 kB / 0.5133 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.215e-05/0.3653, allocations: 23.98 kB / 0.5133 GB, free: 14.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.318e-05/0.3653, allocations: 31.98 kB / 0.5134 GB, free: 14.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.672e-05/0.3654, allocations: 68.78 kB / 0.5134 GB, free: 14.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3654, allocations: 0 / 0.5134 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001172/0.3655, allocations: 93.58 kB / 0.5135 GB, free: 14.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3656, allocations: 12 kB / 0.5135 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3656, allocations: 0 / 0.5135 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3656, allocations: 0 / 0.5135 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.3656, allocations: 0 / 0.5135 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3656, allocations: 3.984 kB / 0.5135 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.671e-05/0.3656, allocations: 7.906 kB / 0.5135 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.3657, allocations: 0 / 0.5135 GB, free: 14.41 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 7.408e-05/0.3657, allocations: 117.8 kB / 0.5136 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.3658, allocations: 7.922 kB / 0.5137 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.366, allocations: 163.4 kB / 0.5138 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.366, allocations: 4 kB / 0.5138 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.366, allocations: 0 / 0.5138 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.366, allocations: 0 / 0.5138 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.3661, allocations: 165.7 kB / 0.514 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3661, allocations: 4 kB / 0.514 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3661, allocations: 0 / 0.514 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.3661, allocations: 3.938 kB / 0.514 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3661, allocations: 0 / 0.514 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3662, allocations: 7.969 kB / 0.514 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3662, allocations: 0 / 0.514 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.723e-05/0.3663, allocations: 96.94 kB / 0.5141 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.3663, allocations: 88.98 kB / 0.5142 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.3663, allocations: 4 kB / 0.5142 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.25e-05/0.3664, allocations: 4 kB / 0.5142 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-06/0.3664, allocations: 0 / 0.5142 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.3664, allocations: 4 kB / 0.5142 GB, free: 13.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.023e-05/0.3665, allocations: 103.3 kB / 0.5143 GB, free: 13.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3665, allocations: 0 / 0.5143 GB, free: 13.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001809/0.3683, allocations: 0.8628 MB / 0.5151 GB, free: 12.67 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.00373/0.372, allocations: 1.885 MB / 0.517 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.3721, allocations: 51.92 kB / 0.517 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3722, allocations: 0 / 0.517 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.3722, allocations: 23.88 kB / 0.517 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.3726, allocations: 52.05 kB / 0.5171 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.3744, allocations: 1.654 MB / 0.5187 GB, free: 8.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.3746, allocations: 0.6807 MB / 0.5194 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.494e-05/0.3747, allocations: 8.031 kB / 0.5194 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.3747, allocations: 19.42 kB / 0.5194 GB, free: 8.156 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3747, allocations: 0 / 0.5194 GB, free: 8.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05242/0.4271, allocations: 25.75 MB / 0.5445 GB, free: 14.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.673/9.101, allocations: 23.92 kB / 0.5446 GB, free: 14.36 MB / 446.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)