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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 216.6 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 207.6 MB / 233 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05351/0.05351, allocations: 9.147 MB / 294.4 MB, free: 12.69 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 63.62 kB / 411.1 MB, free: 46.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07212/0.07432, allocations: 50.78 MB / 461.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02297/0.09729, allocations: 18.01 MB / 479.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02403/0.1213, allocations: 17.04 MB / 496.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.1215, allocations: 0 / 496.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.1228, allocations: 314.6 kB / 497.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009269/0.1237, allocations: 222.7 kB / 497.4 MB, free: 9.168 MB / 366.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.0302/0.1539, allocations: 7.561 MB / 0.4931 GB, free: 1.598 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005695/0.1545, allocations: 286.4 kB / 0.4934 GB, free: 1.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.401e-05/0.1545, allocations: 5.812 kB / 0.4934 GB, free: 1.312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003222/0.1549, allocations: 131.4 kB / 0.4935 GB, free: 1.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.155, allocations: 71.67 kB / 0.4936 GB, free: 1.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.155, allocations: 4 kB / 0.4936 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02609/0.1811, allocations: 10.61 MB / 0.504 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.132e-05/0.1812, allocations: 19.86 kB / 0.504 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.1814, allocations: 71.62 kB / 0.5041 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.1954, allocations: 4.407 MB / 0.5084 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1954, allocations: 0 / 0.5084 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1954, allocations: 7.938 kB / 0.5084 GB, free: 1.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.736e-05/0.1955, allocations: 0 / 0.5084 GB, free: 1.965 MB / 382.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.003107/0.1986, allocations: 0.9417 MB / 0.5093 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1986, allocations: 15.98 kB / 0.5093 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.1987, allocations: 42.55 kB / 0.5093 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.1987, allocations: 19.86 kB / 0.5094 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.1989, allocations: 128.9 kB / 0.5095 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1989, allocations: 8 kB / 0.5095 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.1989, allocations: 0 / 0.5095 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/0.1992, allocations: 168.4 kB / 0.5096 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1993, allocations: 0 / 0.5096 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1993, allocations: 4 kB / 0.5097 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1993, allocations: 7.984 kB / 0.5097 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.1995, allocations: 115.9 kB / 0.5098 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.2003, allocations: 0.5152 MB / 0.5103 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.2006, allocations: 110.5 kB / 0.5104 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.2007, allocations: 100.8 kB / 0.5105 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.307/0.5078, allocations: 25.68 MB / 0.5355 GB, free: 70.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.5078, allocations: 39.62 kB / 0.5356 GB, free: 70.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.224e-06/0.5078, allocations: 0 / 0.5356 GB, free: 70.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006398/0.5084, allocations: 375.9 kB / 0.5359 GB, free: 70.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.171e-05/0.5084, allocations: 55.3 kB / 0.536 GB, free: 70.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.91e-05/0.5085, allocations: 124.5 kB / 0.5361 GB, free: 70.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.5085, allocations: 26.83 kB / 0.5361 GB, free: 70.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.924e-05/0.5086, allocations: 90.78 kB / 0.5362 GB, free: 69.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.909e-05/0.5086, allocations: 143.6 kB / 0.5364 GB, free: 69.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.5087, allocations: 41.34 kB / 0.5364 GB, free: 69.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.5087, allocations: 326.4 kB / 0.5367 GB, free: 69.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.5089, allocations: 88.89 kB / 0.5368 GB, free: 69.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.509, allocations: 126.1 kB / 0.5369 GB, free: 69.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.5093, allocations: 236.7 kB / 0.5371 GB, free: 69.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5093, allocations: 0 / 0.5371 GB, free: 69.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003734/0.5097, allocations: 272.5 kB / 0.5374 GB, free: 69.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.5097, allocations: 8.438 kB / 0.5374 GB, free: 69.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.5097, allocations: 10.3 kB / 0.5374 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.5097, allocations: 1.094 kB / 0.5374 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.367e-05/0.5098, allocations: 7.344 kB / 0.5374 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.5098, allocations: 2.125 kB / 0.5374 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.5099, allocations: 32.14 kB / 0.5375 GB, free: 69.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.5099, allocations: 3.531 kB / 0.5375 GB, free: 69.11 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.356e-05/0.51, allocations: 117.6 kB / 0.5376 GB, free: 68.99 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.51, allocations: 22.27 kB / 0.5376 GB, free: 68.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004959/0.5105, allocations: 321.4 kB / 0.5379 GB, free: 68.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.5106, allocations: 9.891 kB / 0.5379 GB, free: 68.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5106, allocations: 1.219 kB / 0.5379 GB, free: 68.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.5106, allocations: 0 / 0.5379 GB, free: 68.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.5108, allocations: 241.6 kB / 0.5382 GB, free: 68.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.5108, allocations: 9.203 kB / 0.5382 GB, free: 68.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.5108, allocations: 9.344 kB / 0.5382 GB, free: 68.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.5108, allocations: 2.062 kB / 0.5382 GB, free: 68.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.5109, allocations: 1.312 kB / 0.5382 GB, free: 68.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5109, allocations: 3.984 kB / 0.5382 GB, free: 68.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5109, allocations: 0 / 0.5382 GB, free: 68.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004128/0.5113, allocations: 371 kB / 0.5385 GB, free: 68.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.5113, allocations: 37.31 kB / 0.5386 GB, free: 68.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.5113, allocations: 1.062 kB / 0.5386 GB, free: 68.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.5115, allocations: 7.984 kB / 0.5386 GB, free: 68.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.5115, allocations: 14.42 kB / 0.5386 GB, free: 68.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.5115, allocations: 3.156 kB / 0.5386 GB, free: 68.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.5115, allocations: 99.3 kB / 0.5387 GB, free: 68.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5115, allocations: 0 / 0.5387 GB, free: 68.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0031/0.5146, allocations: 1.127 MB / 0.5398 GB, free: 68.05 MB / 398.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.004418/0.5191, allocations: 2.491 MB / 0.5422 GB, free: 66.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.5195, allocations: 235.5 kB / 0.5424 GB, free: 66.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5195, allocations: 0 / 0.5424 GB, free: 66.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.5197, allocations: 132.9 kB / 0.5426 GB, free: 66.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008132/0.5205, allocations: 142.9 kB / 0.5427 GB, free: 66.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.5221, allocations: 0.8497 MB / 0.5435 GB, free: 65.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.5222, allocations: 0.7281 MB / 0.5442 GB, free: 65.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.247e-05/0.5223, allocations: 10.88 kB / 0.5443 GB, free: 65.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.47e-05/0.5223, allocations: 46.95 kB / 0.5443 GB, free: 65.22 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.5223, allocations: 3.938 kB / 0.5443 GB, free: 65.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06397/0.5863, allocations: 32.85 MB / 0.5764 GB, free: 33.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.98, allocations: 7.875 kB / 0.5764 GB, free: 33.3 MB / 398.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0048 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.628528425935656] Failed to read output from testmodel.py, exit status != 0: 13.111803340958431 13.134653209 12.934666095 Calling exit ...