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.001294/0.001294, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001518/0.001518, allocations: 214.8 kB / 23.03 MB, free: 4.922 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.367/1.367, allocations: 207.7 MB / 233.9 MB, free: 9.793 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.04978/0.04978, allocations: 9.153 MB / 295.3 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="cs",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.002097/0.002097, allocations: 67.55 kB / 411.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07534/0.07744, allocations: 50.75 MB / 462.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.0199/0.09733, allocations: 16.24 MB / 478.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.1134, allocations: 15.05 MB / 493.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.1136, allocations: 4 kB / 493.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007584/0.1144, allocations: 246.8 kB / 494.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005478/0.1149, allocations: 214.8 kB / 494.3 MB, free: 12.68 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.01766/0.1326, allocations: 7.438 MB / 0.49 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003985/0.133, allocations: 294.3 kB / 0.4903 GB, free: 4.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.894e-05/0.133, allocations: 5.812 kB / 0.4903 GB, free: 4.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1332, allocations: 131.5 kB / 0.4904 GB, free: 4.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.1334, allocations: 67.67 kB / 0.4905 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.1334, allocations: 4 kB / 0.4905 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01364/0.147, allocations: 7.594 MB / 0.4979 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.19e-05/0.147, allocations: 15.92 kB / 0.4979 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.1472, allocations: 71.67 kB / 0.498 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00952/0.1567, allocations: 3.795 MB / 0.5017 GB, free: 9.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1567, allocations: 3.938 kB / 0.5017 GB, free: 9.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1567, allocations: 0 / 0.5017 GB, free: 9.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1567, allocations: 0 / 0.5017 GB, free: 9.242 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.002196/0.1589, allocations: 0.9417 MB / 0.5026 GB, free: 8.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.159, allocations: 11.98 kB / 0.5026 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.595e-05/0.159, allocations: 8 kB / 0.5026 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.49e-05/0.1591, allocations: 50.48 kB / 0.5027 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.1591, allocations: 23.84 kB / 0.5027 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.1592, allocations: 124.9 kB / 0.5028 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1592, allocations: 8 kB / 0.5028 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.1592, allocations: 7.938 kB / 0.5028 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.1595, allocations: 168.4 kB / 0.503 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1596, allocations: 0 / 0.503 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.1596, allocations: 0 / 0.503 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.1596, allocations: 11.98 kB / 0.503 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.1598, allocations: 115.9 kB / 0.5031 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.1605, allocations: 0.4996 MB / 0.5036 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.1607, allocations: 110.5 kB / 0.5037 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.1609, allocations: 100.8 kB / 0.5038 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.29/0.4509, allocations: 25.75 MB / 0.5289 GB, free: 73.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.451, allocations: 34.16 kB / 0.529 GB, free: 73.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.894e-06/0.451, allocations: 0 / 0.529 GB, free: 73.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006353/0.4516, allocations: 379.1 kB / 0.5293 GB, free: 73.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.4516, allocations: 53.58 kB / 0.5294 GB, free: 73.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.679e-05/0.4517, allocations: 124.3 kB / 0.5295 GB, free: 73.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.4517, allocations: 26.33 kB / 0.5295 GB, free: 73.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.4518, allocations: 95.39 kB / 0.5296 GB, free: 73.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.745e-05/0.4518, allocations: 139 kB / 0.5298 GB, free: 73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.4519, allocations: 41.64 kB / 0.5298 GB, free: 72.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 5.81e-05/0.4519, allocations: 328.2 kB / 0.5301 GB, free: 72.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.4521, allocations: 89.14 kB / 0.5302 GB, free: 72.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.4523, allocations: 122.7 kB / 0.5303 GB, free: 72.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.4526, allocations: 239.8 kB / 0.5305 GB, free: 72.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4526, allocations: 2.188 kB / 0.5305 GB, free: 72.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003877/0.453, allocations: 277.6 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.453, allocations: 10.03 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.453, allocations: 2.516 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.453, allocations: 2.062 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.544e-05/0.4531, allocations: 10.73 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.4531, allocations: 4.719 kB / 0.5308 GB, free: 72.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.137e-05/0.4532, allocations: 29.28 kB / 0.5309 GB, free: 72.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.4532, allocations: 4.609 kB / 0.5309 GB, free: 72.5 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.077e-05/0.4533, allocations: 118.5 kB / 0.531 GB, free: 72.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.4533, allocations: 17.44 kB / 0.531 GB, free: 72.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005088/0.4538, allocations: 326.6 kB / 0.5313 GB, free: 72.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.4538, allocations: 5.078 kB / 0.5313 GB, free: 72.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4538, allocations: 11.19 kB / 0.5313 GB, free: 72.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4538, allocations: 0 / 0.5313 GB, free: 72.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.4541, allocations: 231.4 kB / 0.5315 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4541, allocations: 0.6562 kB / 0.5315 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.743e-05/0.4541, allocations: 11.75 kB / 0.5316 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4541, allocations: 1.25 kB / 0.5316 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.4541, allocations: 1.891 kB / 0.5316 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4541, allocations: 0 / 0.5316 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4541, allocations: 6.125 kB / 0.5316 GB, free: 72.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004022/0.4545, allocations: 374.9 kB / 0.5319 GB, free: 71.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.4546, allocations: 27.89 kB / 0.532 GB, free: 71.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.4546, allocations: 5.094 kB / 0.532 GB, free: 71.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4547, allocations: 6.156 kB / 0.532 GB, free: 71.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.4547, allocations: 10.17 kB / 0.532 GB, free: 71.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.4548, allocations: 3.672 kB / 0.532 GB, free: 71.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.118e-05/0.4548, allocations: 97.02 kB / 0.5321 GB, free: 71.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4548, allocations: 0 / 0.5321 GB, free: 71.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002691/0.4575, allocations: 1.126 MB / 0.5332 GB, free: 71.61 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.00494/0.4624, allocations: 2.486 MB / 0.5356 GB, free: 70.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.4629, allocations: 235.4 kB / 0.5358 GB, free: 70.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4629, allocations: 0 / 0.5358 GB, free: 70.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.4631, allocations: 129.9 kB / 0.5359 GB, free: 70.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000821/0.4639, allocations: 157.1 kB / 0.5361 GB, free: 70.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.4656, allocations: 0.8581 MB / 0.5369 GB, free: 69.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.87e-05/0.4656, allocations: 110.7 kB / 0.537 GB, free: 69.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.121e-05/0.4657, allocations: 13.75 kB / 0.5371 GB, free: 69.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.4658, allocations: 38.39 kB / 0.5371 GB, free: 69.79 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4658, allocations: 0 / 0.5371 GB, free: 69.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0582/0.524, allocations: 33.36 MB / 0.5697 GB, free: 40.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.84, allocations: 8.922 kB / 0.5697 GB, free: 40.5 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 os._exit(0), Time elapsed: 15.890990365063772] Failed to read output from testmodel.py, exit status != 0: 13.013178093009628 13.02398139 12.864832721 Calling exit ...