Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_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.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_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.0009847/0.0009847, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001007/0.001007, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.202/1.202, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 1.07/1.07, allocations: 9.076 MB / 278.5 MB, free: 12.34 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.001693/0.001693, allocations: 75.83 kB / 337.6 MB, free: 25.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.0959, allocations: 48.16 MB / 385.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01842/0.1144, allocations: 17.9 MB / 403.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.1295, allocations: 16.99 MB / 420.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002401/0.1298, allocations: 0 / 420.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007821/0.1306, allocations: 258.9 kB / 420.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.1311, allocations: 190.9 kB / 421.1 MB, free: 6.008 MB / 318.1 MB [/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.2333/0.3645, allocations: 6.438 MB / 427.6 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.3649, allocations: 293.2 kB / 427.8 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.596e-05/0.365, allocations: 20.02 kB / 427.9 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.3653, allocations: 128.6 kB / 428 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.3654, allocations: 69.67 kB / 428.1 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.3654, allocations: 3.25 kB / 428.1 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01928/0.3847, allocations: 9.805 MB / 437.9 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.814e-05/0.3848, allocations: 17.62 kB / 437.9 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.3851, allocations: 79.02 kB / 438 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01277/0.3979, allocations: 4.384 MB / 442.3 MB, free: 18.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3979, allocations: 1.719 kB / 442.3 MB, free: 18.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3979, allocations: 0 / 442.3 MB, free: 18.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3979, allocations: 0 / 442.3 MB, free: 18.11 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.00283/0.4008, allocations: 0.99 MB / 443.3 MB, free: 17.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4008, allocations: 12 kB / 443.3 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.4009, allocations: 48.92 kB / 443.4 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.4009, allocations: 18.44 kB / 443.4 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.802e-05/0.401, allocations: 186.5 kB / 443.6 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.401, allocations: 3.812 kB / 443.6 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.4011, allocations: 8.234 kB / 443.6 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.4013, allocations: 164.1 kB / 443.8 MB, free: 17.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.4014, allocations: 4.688 kB / 443.8 MB, free: 17.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.4014, allocations: 2.969 kB / 443.8 MB, free: 17.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.4014, allocations: 10.67 kB / 443.8 MB, free: 17.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.4016, allocations: 102.2 kB / 443.9 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005214/0.4021, allocations: 0.5271 MB / 444.4 MB, free: 16.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.4023, allocations: 134.5 kB / 444.5 MB, free: 16.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.4025, allocations: 121 kB / 444.7 MB, free: 16.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1296/0.5321, allocations: 85.21 MB / 0.5175 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.5322, allocations: 42.55 kB / 0.5175 GB, free: 3.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.613e-06/0.5322, allocations: 0 / 0.5175 GB, free: 3.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005919/0.5328, allocations: 371.1 kB / 0.5179 GB, free: 3.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.5328, allocations: 51.41 kB / 0.5179 GB, free: 3.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.989e-05/0.5329, allocations: 120.5 kB / 0.518 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.5329, allocations: 29.69 kB / 0.518 GB, free: 2.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.533, allocations: 92.98 kB / 0.5181 GB, free: 2.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.533, allocations: 133.4 kB / 0.5183 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.5331, allocations: 45.61 kB / 0.5183 GB, free: 2.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.5332, allocations: 322.8 kB / 0.5186 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.5333, allocations: 86.69 kB / 0.5187 GB, free: 2.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.5335, allocations: 122.5 kB / 0.5188 GB, free: 2.082 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.5338, allocations: 229.2 kB / 0.519 GB, free: 1.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.5338, allocations: 4 kB / 0.519 GB, free: 1.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003616/0.5341, allocations: 271.3 kB / 0.5193 GB, free: 1.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.5342, allocations: 7.938 kB / 0.5193 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.5342, allocations: 5.844 kB / 0.5193 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.5342, allocations: 4 kB / 0.5193 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.07e-05/0.5343, allocations: 11.98 kB / 0.5193 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.5343, allocations: 0 / 0.5193 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.664e-05/0.5344, allocations: 19.83 kB / 0.5193 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.5344, allocations: 4 kB / 0.5193 GB, free: 1.535 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 3 * 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 7.836e-05/0.5345, allocations: 117.8 kB / 0.5195 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.5345, allocations: 23.66 kB / 0.5195 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004524/0.535, allocations: 320.1 kB / 0.5198 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.535, allocations: 7.984 kB / 0.5198 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.535, allocations: 0 / 0.5198 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.535, allocations: 4 kB / 0.5198 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.5353, allocations: 258.9 kB / 0.52 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.5353, allocations: 0 / 0.52 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.677e-05/0.5353, allocations: 11.98 kB / 0.5201 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.5353, allocations: 3.938 kB / 0.5201 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.5354, allocations: 4.875 kB / 0.5201 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5354, allocations: 4 kB / 0.5201 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.5354, allocations: 0 / 0.5201 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.5357, allocations: 362.6 kB / 0.5204 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.5358, allocations: 104.8 kB / 0.5205 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.5358, allocations: 3.938 kB / 0.5205 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.536, allocations: 11.98 kB / 0.5205 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.536, allocations: 15.92 kB / 0.5205 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.536, allocations: 0 / 0.5205 GB, free: 240 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.133e-05/0.5361, allocations: 99.64 kB / 0.5206 GB, free: 144 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5361, allocations: 0 / 0.5206 GB, free: 144 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002866/0.5389, allocations: 1.101 MB / 0.5217 GB, free: 15.04 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 (7): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.00465/0.5436, allocations: 2.472 MB / 0.5241 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004297/0.544, allocations: 252.6 kB / 0.5244 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5441, allocations: 0 / 0.5244 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.5442, allocations: 145.7 kB / 0.5245 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008141/0.5451, allocations: 155.4 kB / 0.5247 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.547, allocations: 0.9009 MB / 0.5255 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.5472, allocations: 0.7245 MB / 0.5262 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.469e-05/0.5473, allocations: 15.97 kB / 0.5263 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.5474, allocations: 35.44 kB / 0.5263 GB, free: 10.45 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5474, allocations: 0 / 0.5263 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4773/1.025, allocations: 32.25 MB / 0.5578 GB, free: 10.33 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000379/1.025, allocations: 212 kB / 0.558 GB, free: 10.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.94/4.965, allocations: 0 / 0.558 GB, free: 10.07 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)