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.001548/0.001548, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001417/0.001417, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.356/1.356, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.04999/0.04999, allocations: 9.167 MB / 295.2 MB, free: 12.7 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_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.002117/0.002117, allocations: 71.09 kB / 411.8 MB, free: 46.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07375/0.07587, allocations: 50.76 MB / 462.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.02119/0.09706, allocations: 18.48 MB / 481.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.1148, allocations: 16.46 MB / 497.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.115, allocations: 0 / 497.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000886/0.1159, allocations: 322.6 kB / 497.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.1162, allocations: 131.3 kB / 498 MB, free: 9.215 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.01787/0.134, allocations: 7.472 MB / 0.4936 GB, free: 1.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.1344, allocations: 250.6 kB / 0.4939 GB, free: 1.492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.298e-05/0.1344, allocations: 9.25 kB / 0.4939 GB, free: 1.484 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.1346, allocations: 99.64 kB / 0.494 GB, free: 1.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1347, allocations: 63.66 kB / 0.494 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.1347, allocations: 0 / 0.494 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01882/0.1535, allocations: 10.54 MB / 0.5043 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.873e-05/0.1535, allocations: 11.92 kB / 0.5043 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002303/0.1538, allocations: 63.69 kB / 0.5044 GB, free: 6.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01357/0.1674, allocations: 4.279 MB / 0.5086 GB, free: 2.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1674, allocations: 0 / 0.5086 GB, free: 2.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1674, allocations: 0 / 0.5086 GB, free: 2.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1674, allocations: 0 / 0.5086 GB, free: 2.402 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.002206/0.1696, allocations: 0.9068 MB / 0.5094 GB, free: 1.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.1696, allocations: 15.98 kB / 0.5095 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.717e-05/0.1696, allocations: 3.984 kB / 0.5095 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.1697, allocations: 42.55 kB / 0.5095 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.1697, allocations: 19.91 kB / 0.5095 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.1699, allocations: 121 kB / 0.5096 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1699, allocations: 8 kB / 0.5096 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.1699, allocations: 4 kB / 0.5097 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.1701, allocations: 125.4 kB / 0.5098 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.1701, allocations: 0 / 0.5098 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1701, allocations: 0 / 0.5098 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.1701, allocations: 3.984 kB / 0.5098 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.831e-05/0.1702, allocations: 87.91 kB / 0.5099 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.1705, allocations: 232.3 kB / 0.5101 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.1706, allocations: 94.55 kB / 0.5102 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.43e-05/0.1707, allocations: 84.89 kB / 0.5103 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3096/0.4804, allocations: 27.44 MB / 0.5371 GB, free: 70.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.4804, allocations: 35.72 kB / 0.5371 GB, free: 70.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.663e-06/0.4804, allocations: 0 / 0.5371 GB, free: 70.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004287/0.4808, allocations: 347.9 kB / 0.5374 GB, free: 70.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.4808, allocations: 52.81 kB / 0.5375 GB, free: 70.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.694e-05/0.4809, allocations: 104.7 kB / 0.5376 GB, free: 70.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.173e-06/0.4809, allocations: 25.7 kB / 0.5376 GB, free: 69.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.284e-05/0.4809, allocations: 82.45 kB / 0.5377 GB, free: 69.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.715e-05/0.481, allocations: 136 kB / 0.5378 GB, free: 69.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.481, allocations: 43.09 kB / 0.5378 GB, free: 69.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 4.407e-05/0.4811, allocations: 322.5 kB / 0.5381 GB, free: 69.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.312e-05/0.4811, allocations: 80.06 kB / 0.5382 GB, free: 69.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.49e-05/0.4812, allocations: 83.56 kB / 0.5383 GB, free: 69.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.4814, allocations: 206.8 kB / 0.5385 GB, free: 69.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4814, allocations: 3.75 kB / 0.5385 GB, free: 69.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002245/0.4816, allocations: 252.3 kB / 0.5387 GB, free: 69.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4817, allocations: 4.969 kB / 0.5388 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.4817, allocations: 0.75 kB / 0.5388 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.4817, allocations: 4.812 kB / 0.5388 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.4817, allocations: 0 / 0.5388 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.4817, allocations: 0.8125 kB / 0.5388 GB, free: 69.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.841e-05/0.4817, allocations: 15.59 kB / 0.5388 GB, free: 69.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.4817, allocations: 2.406 kB / 0.5388 GB, free: 69.11 MB / 398.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.005e-05/0.4818, allocations: 121.9 kB / 0.5389 GB, free: 68.99 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.4818, allocations: 12.94 kB / 0.5389 GB, free: 68.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.4822, allocations: 392.8 kB / 0.5393 GB, free: 68.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/0.4822, allocations: 9.484 kB / 0.5393 GB, free: 68.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4822, allocations: 0 / 0.5393 GB, free: 68.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.4822, allocations: 1.438 kB / 0.5393 GB, free: 68.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.4823, allocations: 214.8 kB / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4823, allocations: 0 / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-06/0.4823, allocations: 1.062 kB / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.4823, allocations: 0 / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.4824, allocations: 6 kB / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.4824, allocations: 3.75 kB / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4824, allocations: 0 / 0.5395 GB, free: 68.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.4826, allocations: 235 kB / 0.5397 GB, free: 68.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.59e-05/0.4826, allocations: 16.59 kB / 0.5397 GB, free: 68.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.4826, allocations: 2.562 kB / 0.5397 GB, free: 68.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.008e-05/0.4826, allocations: 4.875 kB / 0.5398 GB, free: 68.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.4826, allocations: 5.984 kB / 0.5398 GB, free: 68.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.4827, allocations: 5.156 kB / 0.5398 GB, free: 68.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.195e-05/0.4827, allocations: 103.7 kB / 0.5399 GB, free: 68.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4827, allocations: 0 / 0.5399 GB, free: 68.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002185/0.4849, allocations: 1.112 MB / 0.5409 GB, free: 68.11 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 (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.003564/0.4884, allocations: 2.307 MB / 0.5432 GB, free: 66.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.4886, allocations: 160.7 kB / 0.5434 GB, free: 66.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4886, allocations: 0 / 0.5434 GB, free: 66.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.577e-05/0.4887, allocations: 79.39 kB / 0.5434 GB, free: 66.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.4895, allocations: 144.4 kB / 0.5436 GB, free: 66.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.4913, allocations: 2.324 MB / 0.5458 GB, free: 65.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.4914, allocations: 0.7129 MB / 0.5465 GB, free: 64.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.085e-05/0.4915, allocations: 11.09 kB / 0.5465 GB, free: 64.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.4915, allocations: 34.7 kB / 0.5466 GB, free: 64.3 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4915, allocations: 0 / 0.5466 GB, free: 64.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05404/0.5455, allocations: 32.36 MB / 0.5782 GB, free: 32.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.97, allocations: 64 / 0.5782 GB, free: 32.23 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --stepSize=1 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.478597459034063] Failed to read output from testmodel.py, exit status != 0: 12.137397900922224 12.147163234 11.977584948 Calling exit ...