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.001447/0.001447, allocations: 107.2 kB / 16.45 MB, free: 6.449 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.001744/0.001744, allocations: 212 kB / 19.43 MB, free: 3.637 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.469/1.469, allocations: 207.6 MB / 229.8 MB, free: 11.41 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.09282/0.09282, allocations: 9.144 MB / 290.8 MB, free: 13.91 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.002149/0.002149, allocations: 72.08 kB / 405.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0809/0.08305, allocations: 50.72 MB / 456.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02257/0.1056, allocations: 17.99 MB / 474.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02001/0.1256, allocations: 17.03 MB / 491.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.1258, allocations: 0 / 491.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008996/0.1267, allocations: 314.6 kB / 491.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006249/0.1273, allocations: 226.7 kB / 492.1 MB, free: 10.56 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.02179/0.1491, allocations: 7.478 MB / 499.6 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.1496, allocations: 290.4 kB / 499.9 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.896e-05/0.1497, allocations: 9.688 kB / 499.9 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.1499, allocations: 127.4 kB / 0.4883 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.15, allocations: 71.66 kB / 0.4884 GB, free: 2.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.15, allocations: 4 kB / 0.4884 GB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02113/0.1712, allocations: 10.29 MB / 0.4984 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.708e-05/0.1712, allocations: 15.88 kB / 0.4984 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1714, allocations: 87.59 kB / 0.4985 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.1836, allocations: 4.388 MB / 0.5028 GB, free: 3.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1836, allocations: 0 / 0.5028 GB, free: 3.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1836, allocations: 0 / 0.5028 GB, free: 3.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.1836, allocations: 0 / 0.5028 GB, free: 3.781 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.002333/0.186, allocations: 1.017 MB / 0.5038 GB, free: 2.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.186, allocations: 12.03 kB / 0.5038 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.413e-05/0.1861, allocations: 46.55 kB / 0.5038 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.1861, allocations: 19.86 kB / 0.5039 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1863, allocations: 194.7 kB / 0.504 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1863, allocations: 4 kB / 0.504 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.1863, allocations: 4 kB / 0.5041 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.1867, allocations: 168.2 kB / 0.5042 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1867, allocations: 0 / 0.5042 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.1867, allocations: 4 kB / 0.5042 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1867, allocations: 7.984 kB / 0.5042 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.187, allocations: 107.9 kB / 0.5043 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007547/0.1877, allocations: 0.5279 MB / 0.5048 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.188, allocations: 118.5 kB / 0.505 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.1881, allocations: 88.81 kB / 0.505 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3179/0.5061, allocations: 85.22 MB / 0.5883 GB, free: 33.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.5061, allocations: 34.72 kB / 0.5883 GB, free: 33.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.174e-06/0.5061, allocations: 0 / 0.5883 GB, free: 33.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006494/0.5067, allocations: 366.6 kB / 0.5886 GB, free: 33.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.01e-05/0.5068, allocations: 51.41 kB / 0.5887 GB, free: 33.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.5069, allocations: 122.4 kB / 0.5888 GB, free: 33.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.5069, allocations: 29.39 kB / 0.5888 GB, free: 33.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.104e-05/0.5069, allocations: 91.62 kB / 0.5889 GB, free: 33.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.628e-05/0.507, allocations: 137.1 kB / 0.5891 GB, free: 33.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/0.507, allocations: 44.28 kB / 0.5891 GB, free: 33.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.5071, allocations: 326.8 kB / 0.5894 GB, free: 32.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.5072, allocations: 86.95 kB / 0.5895 GB, free: 32.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.5073, allocations: 127.6 kB / 0.5896 GB, free: 32.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.5076, allocations: 230.6 kB / 0.5898 GB, free: 32.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5076, allocations: 3.75 kB / 0.5898 GB, free: 32.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003484/0.508, allocations: 265.3 kB / 0.5901 GB, free: 32.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.508, allocations: 8 kB / 0.5901 GB, free: 32.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.508, allocations: 4 kB / 0.5901 GB, free: 32.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.508, allocations: 0 / 0.5901 GB, free: 32.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.717e-05/0.5081, allocations: 11.98 kB / 0.5901 GB, free: 32.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.5081, allocations: 4 kB / 0.5901 GB, free: 32.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.953e-05/0.5082, allocations: 22.66 kB / 0.5901 GB, free: 32.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.5082, allocations: 2.266 kB / 0.5901 GB, free: 32.35 MB / 414.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.243e-05/0.5083, allocations: 135.1 kB / 0.5903 GB, free: 32.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.5083, allocations: 19.86 kB / 0.5903 GB, free: 32.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004384/0.5088, allocations: 294.6 kB / 0.5906 GB, free: 31.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.5088, allocations: 15.98 kB / 0.5906 GB, free: 31.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.5088, allocations: 0 / 0.5906 GB, free: 31.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5088, allocations: 0 / 0.5906 GB, free: 31.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.509, allocations: 278.9 kB / 0.5908 GB, free: 31.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.509, allocations: 0 / 0.5908 GB, free: 31.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.928e-05/0.509, allocations: 4 kB / 0.5909 GB, free: 31.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.509, allocations: 3.984 kB / 0.5909 GB, free: 31.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.509, allocations: 8.562 kB / 0.5909 GB, free: 31.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.509, allocations: 0 / 0.5909 GB, free: 31.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.509, allocations: 0 / 0.5909 GB, free: 31.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.5094, allocations: 368.1 kB / 0.5912 GB, free: 31.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.817e-05/0.5095, allocations: 105.5 kB / 0.5913 GB, free: 31.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.5095, allocations: 5.812 kB / 0.5913 GB, free: 31.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.5096, allocations: 8 kB / 0.5913 GB, free: 31.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.5096, allocations: 3.984 kB / 0.5913 GB, free: 31.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.5096, allocations: 4 kB / 0.5913 GB, free: 31.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.094e-05/0.5097, allocations: 95.27 kB / 0.5914 GB, free: 30.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.5097, allocations: 0 / 0.5914 GB, free: 30.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002734/0.5124, allocations: 1.126 MB / 0.5925 GB, free: 29.98 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.004276/0.5167, allocations: 2.487 MB / 0.595 GB, free: 27.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004283/0.5171, allocations: 231.4 kB / 0.5952 GB, free: 27.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5171, allocations: 0 / 0.5952 GB, free: 27.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.5173, allocations: 117.7 kB / 0.5953 GB, free: 27.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008738/0.5182, allocations: 155.3 kB / 0.5954 GB, free: 27.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.5197, allocations: 0.854 MB / 0.5963 GB, free: 26.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.5199, allocations: 0.7208 MB / 0.597 GB, free: 25.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.479e-05/0.5199, allocations: 11.33 kB / 0.597 GB, free: 25.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.505e-05/0.52, allocations: 43.42 kB / 0.597 GB, free: 25.45 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.52, allocations: 0 / 0.597 GB, free: 25.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.062/0.582, allocations: 32.48 MB / 0.6288 GB, free: 9.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.998/10.58, allocations: 15.55 kB / 0.6288 GB, free: 9.004 MB / 430.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 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: 13.344501631334424] Failed to read output from testmodel.py, exit status != 0: 10.671166941989213 10.686631074 10.499905594 Calling exit ...