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.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.001301/0.001301, allocations: 106.1 kB / 16.45 MB, free: 6.5 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.001499/0.001499, allocations: 216 kB / 19.43 MB, free: 3.656 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.379/1.379, 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.05405/0.05405, allocations: 9.153 MB / 290.8 MB, free: 13.89 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.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"}) [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.002176/0.002176, allocations: 77.27 kB / 405.9 MB, free: 47.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07104/0.07321, allocations: 50.72 MB / 456.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.02198/0.09519, allocations: 18.46 MB / 475 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01815/0.1133, allocations: 16.44 MB / 491.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.1135, allocations: 3.938 kB / 491.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007438/0.1142, allocations: 318.7 kB / 491.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.1144, allocations: 135.3 kB / 491.9 MB, free: 10.75 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.01759/0.132, allocations: 7.396 MB / 499.3 MB, free: 3.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.1324, allocations: 246.7 kB / 499.5 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.345e-05/0.1324, allocations: 9.062 kB / 499.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1326, allocations: 107.6 kB / 499.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.518e-05/0.1327, allocations: 55.73 kB / 499.7 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.898e-06/0.1327, allocations: 4 kB / 499.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01798/0.1507, allocations: 10.22 MB / 0.498 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.1507, allocations: 7.938 kB / 0.498 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.1508, allocations: 67.67 kB / 0.4981 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.1609, allocations: 4.259 MB / 0.5022 GB, free: 4.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.161, allocations: 0 / 0.5022 GB, free: 4.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.161, allocations: 0 / 0.5022 GB, free: 4.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.161, allocations: 0 / 0.5022 GB, free: 4.352 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0021/0.1631, allocations: 0.986 MB / 0.5032 GB, free: 3.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1631, allocations: 8.031 kB / 0.5032 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.043e-05/0.1632, allocations: 54.55 kB / 0.5032 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.1632, allocations: 11.91 kB / 0.5033 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.1633, allocations: 178.8 kB / 0.5034 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1633, allocations: 4 kB / 0.5034 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-06/0.1634, allocations: 0 / 0.5034 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.1636, allocations: 125.2 kB / 0.5035 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1636, allocations: 3.984 kB / 0.5036 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.1636, allocations: 0 / 0.5036 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1636, allocations: 11.98 kB / 0.5036 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1637, allocations: 79.97 kB / 0.5036 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002767/0.164, allocations: 253.2 kB / 0.5039 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.1641, allocations: 90.55 kB / 0.504 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.343e-05/0.1642, allocations: 84.83 kB / 0.504 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3242/0.4883, allocations: 93.06 MB / 0.5949 GB, free: 26.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.4884, allocations: 37 kB / 0.595 GB, free: 26.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.776e-06/0.4884, allocations: 0 / 0.595 GB, free: 26.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004684/0.4888, allocations: 333.3 kB / 0.5953 GB, free: 25.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.4889, allocations: 58.5 kB / 0.5953 GB, free: 25.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.968e-05/0.4889, allocations: 93.86 kB / 0.5954 GB, free: 25.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.4889, allocations: 29.7 kB / 0.5954 GB, free: 25.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.807e-05/0.489, allocations: 85.12 kB / 0.5955 GB, free: 25.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.489, allocations: 135.6 kB / 0.5957 GB, free: 25.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.4891, allocations: 45.69 kB / 0.5957 GB, free: 25.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.105e-05/0.4891, allocations: 322.8 kB / 0.596 GB, free: 25.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.414e-05/0.4892, allocations: 71.97 kB / 0.5961 GB, free: 25.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.156e-05/0.4893, allocations: 77 kB / 0.5962 GB, free: 24.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.4894, allocations: 205.7 kB / 0.5963 GB, free: 24.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4894, allocations: 0 / 0.5963 GB, free: 24.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002117/0.4896, allocations: 231.5 kB / 0.5966 GB, free: 24.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.4897, allocations: 8 kB / 0.5966 GB, free: 24.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.4897, allocations: 4 kB / 0.5966 GB, free: 24.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.4897, allocations: 0 / 0.5966 GB, free: 24.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.4897, allocations: 0 / 0.5966 GB, free: 24.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.4897, allocations: 0 / 0.5966 GB, free: 24.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.973e-05/0.4897, allocations: 16.41 kB / 0.5966 GB, free: 24.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.4897, allocations: 0 / 0.5966 GB, free: 24.5 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 6.491e-05/0.4898, allocations: 119.7 kB / 0.5967 GB, free: 24.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.4898, allocations: 18 kB / 0.5967 GB, free: 24.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.4902, allocations: 380.3 kB / 0.5971 GB, free: 23.97 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.4902, allocations: 18.55 kB / 0.5971 GB, free: 23.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4902, allocations: 0 / 0.5971 GB, free: 23.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.4902, allocations: 0 / 0.5971 GB, free: 23.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.4903, allocations: 241.5 kB / 0.5973 GB, free: 23.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4903, allocations: 3.984 kB / 0.5973 GB, free: 23.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.523e-06/0.4903, allocations: 0.875 kB / 0.5973 GB, free: 23.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4903, allocations: 0 / 0.5973 GB, free: 23.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.944e-06/0.4903, allocations: 4 kB / 0.5973 GB, free: 23.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4903, allocations: 7.938 kB / 0.5974 GB, free: 23.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4903, allocations: 0 / 0.5974 GB, free: 23.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.4905, allocations: 223.2 kB / 0.5976 GB, free: 23.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.4906, allocations: 91.61 kB / 0.5977 GB, free: 23.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.4906, allocations: 6.391 kB / 0.5977 GB, free: 23.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.852e-05/0.4906, allocations: 3.938 kB / 0.5977 GB, free: 23.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.4906, allocations: 8 kB / 0.5977 GB, free: 23.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.4906, allocations: 4 kB / 0.5977 GB, free: 23.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.52e-05/0.4907, allocations: 99.27 kB / 0.5978 GB, free: 23.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4907, allocations: 0 / 0.5978 GB, free: 23.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002328/0.493, allocations: 1.108 MB / 0.5989 GB, free: 22.24 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.004656/0.4977, allocations: 2.294 MB / 0.6011 GB, free: 20.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002241/0.4979, allocations: 155.7 kB / 0.6012 GB, free: 19.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4979, allocations: 4 kB / 0.6012 GB, free: 19.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.592e-05/0.4979, allocations: 59.98 kB / 0.6013 GB, free: 19.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008726/0.4988, allocations: 168.7 kB / 0.6015 GB, free: 19.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.5013, allocations: 2.294 MB / 0.6037 GB, free: 17.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.5014, allocations: 0.709 MB / 0.6044 GB, free: 16.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.839e-05/0.5015, allocations: 11.52 kB / 0.6044 GB, free: 16.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.5015, allocations: 39.42 kB / 0.6044 GB, free: 16.56 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5015, allocations: 0 / 0.6044 GB, free: 16.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06635/0.5679, allocations: 32.02 MB / 0.6357 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.374/9.942, allocations: 7.938 kB / 0.6357 GB, free: 0.582 MB / 430.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.499693744350225] Failed to read output from testmodel.py, exit status != 0: 10.032837711740285 10.060106618 9.89400462 Calling exit ...