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.001393/0.001393, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.858/1.858, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05533/0.05533, allocations: 9.092 MB / 278.9 MB, free: 12.18 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.001615/0.001615, allocations: 64.28 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.134, allocations: 48.16 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.02651/0.1605, allocations: 18.39 MB / 404.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.1801, allocations: 16.41 MB / 421.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.1804, allocations: 0 / 421.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009872/0.1814, allocations: 286.9 kB / 421.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1817, allocations: 111.3 kB / 421.5 MB, free: 5.793 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'. [/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.3131/0.4948, allocations: 7.029 MB / 428.5 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000462/0.4953, allocations: 243.8 kB / 428.8 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.013e-05/0.4954, allocations: 13.8 kB / 428.8 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.4956, allocations: 100.9 kB / 428.9 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.4958, allocations: 54.27 kB / 428.9 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.4958, allocations: 4.594 kB / 428.9 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02782/0.5237, allocations: 9.556 MB / 438.5 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.455e-05/0.5238, allocations: 8.219 kB / 438.5 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.5242, allocations: 66.98 kB / 438.6 MB, free: 17.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01589/0.5401, allocations: 4.26 MB / 442.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.5401, allocations: 0 / 442.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5401, allocations: 1.344 kB / 442.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.5401, allocations: 0 / 442.8 MB, free: 17.34 MB / 318.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.003614/0.5438, allocations: 0.9561 MB / 443.8 MB, free: 16.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.538e-05/0.5438, allocations: 9.625 kB / 443.8 MB, free: 16.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.5439, allocations: 47.98 kB / 443.8 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/0.544, allocations: 14.31 kB / 443.8 MB, free: 16.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.5442, allocations: 178.6 kB / 444 MB, free: 16.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.5442, allocations: 4.547 kB / 444 MB, free: 16.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.5442, allocations: 2.062 kB / 444 MB, free: 16.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.5445, allocations: 117.8 kB / 444.1 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.5445, allocations: 0 / 444.1 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.5445, allocations: 0 / 444.1 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.5445, allocations: 13.95 kB / 444.1 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.5447, allocations: 80.52 kB / 444.2 MB, free: 16.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003239/0.545, allocations: 255.1 kB / 444.5 MB, free: 16.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.5451, allocations: 116.5 kB / 444.6 MB, free: 16.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.5453, allocations: 107.3 kB / 444.7 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1683/0.7136, allocations: 93.07 MB / 0.5252 GB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.476e-05/0.7137, allocations: 37.41 kB / 0.5252 GB, free: 9.438 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 5.47e-06/0.7137, allocations: 4 kB / 0.5252 GB, free: 9.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008123/0.7145, allocations: 325.1 kB / 0.5255 GB, free: 9.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.7146, allocations: 51.41 kB / 0.5256 GB, free: 9.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.7148, allocations: 102.5 kB / 0.5257 GB, free: 8.938 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.7148, allocations: 29.27 kB / 0.5257 GB, free: 8.906 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.7149, allocations: 81.14 kB / 0.5258 GB, free: 8.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.7151, allocations: 131.8 kB / 0.5259 GB, free: 8.695 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.7152, allocations: 37.7 kB / 0.5259 GB, free: 8.652 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.7154, allocations: 327 kB / 0.5262 GB, free: 8.324 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.7155, allocations: 79.06 kB / 0.5263 GB, free: 8.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.7157, allocations: 73 kB / 0.5264 GB, free: 8.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.7161, allocations: 196.7 kB / 0.5266 GB, free: 7.984 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.7161, allocations: 3.938 kB / 0.5266 GB, free: 7.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004045/0.7165, allocations: 238.9 kB / 0.5268 GB, free: 7.742 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.7165, allocations: 4 kB / 0.5268 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.7166, allocations: 1.781 kB / 0.5268 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/0.7166, allocations: 0 / 0.5268 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.594e-06/0.7166, allocations: 4 kB / 0.5268 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.7166, allocations: 0 / 0.5268 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.7168, allocations: 19.75 kB / 0.5268 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.7168, allocations: 4 kB / 0.5268 GB, free: 7.711 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: 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.0001619/0.717, allocations: 121.8 kB / 0.5269 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.717, allocations: 11.81 kB / 0.527 GB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005753/0.7176, allocations: 379.2 kB / 0.5273 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/0.7176, allocations: 12.53 kB / 0.5273 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.7176, allocations: 0 / 0.5273 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.7177, allocations: 4 kB / 0.5273 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.718, allocations: 242.2 kB / 0.5276 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.718, allocations: 0 / 0.5276 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.422e-06/0.718, allocations: 0 / 0.5276 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.718, allocations: 0 / 0.5276 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.7181, allocations: 7.281 kB / 0.5276 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.7181, allocations: 0 / 0.5276 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7181, allocations: 0 / 0.5276 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.7184, allocations: 233.8 kB / 0.5278 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.7185, allocations: 92.86 kB / 0.5279 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.7186, allocations: 0 / 0.5279 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.149e-05/0.7186, allocations: 1.312 kB / 0.5279 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.7187, allocations: 7.984 kB / 0.5279 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.7187, allocations: 0 / 0.5279 GB, free: 6.523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.13e-05/0.7188, allocations: 103.3 kB / 0.528 GB, free: 6.422 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7188, allocations: 2.531 kB / 0.528 GB, free: 6.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004824/0.7236, allocations: 1.087 MB / 0.5291 GB, free: 5.336 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: 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.009101/0.7327, allocations: 2.286 MB / 0.5313 GB, free: 3.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003697/0.7331, allocations: 176.7 kB / 0.5315 GB, free: 3.027 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.7331, allocations: 4 kB / 0.5315 GB, free: 3.023 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.123e-05/0.7332, allocations: 78.52 kB / 0.5315 GB, free: 2.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009137/0.7342, allocations: 157.5 kB / 0.5317 GB, free: 2.801 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004335/0.7385, allocations: 2.243 MB / 0.5339 GB, free: 492 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.739, allocations: 0.7129 MB / 0.5346 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.7391, allocations: 11.78 kB / 0.5346 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.531e-05/0.7392, allocations: 39.42 kB / 0.5346 GB, free: 15.69 MB / 430.1 MB Notification: Performance of SimCode: time 1.893e-06/0.7392, allocations: 0 / 0.5346 GB, free: 15.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08878/0.828, allocations: 31.92 MB / 0.5658 GB, free: 15.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.109/9.937, allocations: 11.72 kB / 0.5658 GB, free: 15.78 MB / 462.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)