Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_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: "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",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.004586/0.004586, allocations: 102 kB / 15.73 MB, free: 6 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.001103/0.001103, allocations: 193.8 kB / 16.68 MB, free: 5.922 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.329/1.329, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04519/0.04519, allocations: 9.088 MB / 279 MB, free: 12.05 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: 67.91 kB / 386.9 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.273, allocations: 48.17 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01912/0.2921, allocations: 18.39 MB / 453.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.3104, allocations: 16.41 MB / 469.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.3106, allocations: 1.125 kB / 469.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.3114, allocations: 293.7 kB / 470.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.3117, allocations: 116.9 kB / 470.3 MB, free: 11.85 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.02029/0.332, allocations: 7.032 MB / 477.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003405/0.3323, allocations: 250.6 kB / 477.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.944e-05/0.3324, allocations: 13.12 kB / 477.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.3325, allocations: 103.6 kB / 477.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.3327, allocations: 63.72 kB / 477.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.3327, allocations: 3.938 kB / 477.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01748/0.3502, allocations: 10.06 MB / 487.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.86e-05/0.3502, allocations: 15.92 kB / 487.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.3504, allocations: 63.69 kB / 487.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.3624, allocations: 4.257 MB / 492.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3625, allocations: 0 / 492.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3625, allocations: 0 / 492.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.066e-06/0.3625, allocations: 0 / 492.2 MB, free: 7.586 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.002117/0.3646, allocations: 0.9514 MB / 493.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3647, allocations: 12.02 kB / 493.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.637e-05/0.3648, allocations: 42.55 kB / 493.2 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.245e-05/0.3648, allocations: 11.91 kB / 493.2 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.365, allocations: 186.7 kB / 493.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.365, allocations: 0 / 493.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.365, allocations: 0 / 493.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.3653, allocations: 121.2 kB / 493.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3653, allocations: 0 / 493.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.3653, allocations: 4 kB / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3653, allocations: 7.984 kB / 493.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.3654, allocations: 83.91 kB / 493.6 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002583/0.3657, allocations: 245.3 kB / 493.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.3658, allocations: 118.5 kB / 493.9 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3659, allocations: 104.9 kB / 494 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1528/0.5188, allocations: 93.06 MB / 0.5733 GB, free: 8.215 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.5189, allocations: 34.56 kB / 0.5734 GB, free: 8.172 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.775e-06/0.5189, allocations: 0 / 0.5734 GB, free: 8.172 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005089/0.5194, allocations: 329.6 kB / 0.5737 GB, free: 7.844 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.5194, allocations: 51.41 kB / 0.5737 GB, free: 7.781 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.864e-05/0.5195, allocations: 97.86 kB / 0.5738 GB, free: 7.676 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.5195, allocations: 25.7 kB / 0.5738 GB, free: 7.645 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.5196, allocations: 81.14 kB / 0.5739 GB, free: 7.562 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.5197, allocations: 142.1 kB / 0.5741 GB, free: 7.422 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.28e-05/0.5198, allocations: 33.7 kB / 0.5741 GB, free: 7.383 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5199, allocations: 326.8 kB / 0.5744 GB, free: 7.055 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.118e-05/0.52, allocations: 75.92 kB / 0.5745 GB, free: 6.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.296e-05/0.5201, allocations: 81 kB / 0.5745 GB, free: 6.902 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.5203, allocations: 196.9 kB / 0.5747 GB, free: 6.707 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5203, allocations: 3.938 kB / 0.5747 GB, free: 6.703 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002678/0.5206, allocations: 236.8 kB / 0.575 GB, free: 6.465 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.5206, allocations: 5.094 kB / 0.575 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5206, allocations: 4 kB / 0.575 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.5206, allocations: 0 / 0.575 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.5206, allocations: 4.125 kB / 0.575 GB, free: 6.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5206, allocations: 7.984 kB / 0.575 GB, free: 6.445 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.182e-05/0.5207, allocations: 15.75 kB / 0.575 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.5207, allocations: 4 kB / 0.575 GB, free: 6.426 MB / 478.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: 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 (6): * Single equations (assignments): 0 * 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 0.0001018/0.5208, allocations: 117.8 kB / 0.5751 GB, free: 6.301 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.5209, allocations: 15.75 kB / 0.5751 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004597/0.5213, allocations: 380.5 kB / 0.5755 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.5214, allocations: 7.984 kB / 0.5755 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5214, allocations: 0 / 0.5755 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5214, allocations: 0 / 0.5755 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.5216, allocations: 237.3 kB / 0.5757 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5216, allocations: 0 / 0.5757 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.5216, allocations: 3.938 kB / 0.5757 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5216, allocations: 8 kB / 0.5757 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.5216, allocations: 0 / 0.5757 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.5216, allocations: 3.984 kB / 0.5757 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5216, allocations: 0 / 0.5757 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/0.5219, allocations: 229.4 kB / 0.576 GB, free: 5.336 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.522, allocations: 88.95 kB / 0.576 GB, free: 5.23 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.522, allocations: 3.984 kB / 0.5761 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.604e-05/0.522, allocations: 0 / 0.5761 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.522, allocations: 12 kB / 0.5761 GB, free: 5.215 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.5221, allocations: 7.938 kB / 0.5761 GB, free: 5.207 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.893e-05/0.5221, allocations: 99.27 kB / 0.5762 GB, free: 5.109 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5221, allocations: 0 / 0.5762 GB, free: 5.109 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002427/0.5246, allocations: 1.089 MB / 0.5772 GB, free: 4.02 MB / 478.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: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005054/0.5296, allocations: 2.279 MB / 0.5795 GB, free: 1.711 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002639/0.5299, allocations: 183.8 kB / 0.5796 GB, free: 1.531 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5299, allocations: 0 / 0.5796 GB, free: 1.531 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.53, allocations: 87.92 kB / 0.5797 GB, free: 1.445 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.5309, allocations: 148.4 kB / 0.5799 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.5339, allocations: 2.254 MB / 0.5821 GB, free: 14.96 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5342, allocations: 0.7206 MB / 0.5828 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.265e-05/0.5343, allocations: 8 kB / 0.5828 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.953e-05/0.5343, allocations: 39.38 kB / 0.5828 GB, free: 14.17 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5343, allocations: 0 / 0.5828 GB, free: 14.17 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/0.7632, allocations: 32.05 MB / 0.6141 GB, free: 163.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.754/9.517, allocations: 10.62 kB / 0.6141 GB, free: 163.4 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)