Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.0008734/0.0008734, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009878/0.0009878, allocations: 165 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.023/1.023, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.031/0.031, allocations: 7.519 MB / 267.5 MB, free: 6 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 4 kB / 338.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.641e-05, allocations: 4.703 kB / 338.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.01365/0.01367, allocations: 20.43 MB / 359.1 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02183/0.03549, allocations: 33.75 MB / 392.9 MB, free: 4.566 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.03566, allocations: 7.938 kB / 392.9 MB, free: 4.559 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008657/0.03653, allocations: 0.5171 MB / 393.4 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006867/0.03722, allocations: 0.6491 MB / 394.1 MB, free: 3.387 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01307/0.05028, allocations: 11.47 MB / 405.5 MB, free: 7.867 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008887/0.05117, allocations: 1.495 MB / 407 MB, free: 6.367 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.05132, allocations: 85.77 kB / 407.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006697/0.05199, allocations: 0.8185 MB / 407.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.0523, allocations: 339 kB / 408.3 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.515e-05/0.05235, allocations: 44 kB / 408.3 MB, free: 5.082 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1321/0.1845, allocations: 8.339 MB / 416.6 MB, free: 35.4 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.1846, allocations: 130.2 kB / 416.8 MB, free: 35.4 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004255/0.1851, allocations: 216.4 kB / 417 MB, free: 35.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00929/0.1943, allocations: 5.044 MB / 422 MB, free: 35.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1943, allocations: 0 / 422 MB, free: 35.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1943, allocations: 0 / 422 MB, free: 35.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.1944, allocations: 0 / 422 MB, free: 35.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002562/0.1969, allocations: 1.424 MB / 423.5 MB, free: 34.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.197, allocations: 11.97 kB / 423.5 MB, free: 34.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004019/0.1974, allocations: 175.4 kB / 423.6 MB, free: 34.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.1977, allocations: 277.8 kB / 423.9 MB, free: 34.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.1977, allocations: 28.38 kB / 423.9 MB, free: 34.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.1978, allocations: 43.53 kB / 424 MB, free: 34.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.1985, allocations: 0.6049 MB / 424.6 MB, free: 33.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.1985, allocations: 2 kB / 424.6 MB, free: 33.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.1985, allocations: 16.06 kB / 424.6 MB, free: 33.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.1985, allocations: 14.86 kB / 424.6 MB, free: 33.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004585/0.199, allocations: 284 kB / 424.9 MB, free: 33.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.2002, allocations: 1.785 MB / 426.7 MB, free: 32.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004696/0.2007, allocations: 280.2 kB / 427 MB, free: 32.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.2008, allocations: 122.8 kB / 427.1 MB, free: 32.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03902/0.2398, allocations: 13.79 MB / 440.9 MB, free: 31.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.2399, allocations: 40.83 kB / 440.9 MB, free: 30.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 3.025e-06/0.2399, allocations: 3.625 kB / 440.9 MB, free: 30.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=83): time 0.003442/0.2433, allocations: 1.475 MB / 442.4 MB, free: 30.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.2434, allocations: 59 kB / 442.4 MB, free: 30.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.2435, allocations: 272.2 kB / 442.7 MB, free: 30.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.2436, allocations: 37.05 kB / 442.7 MB, free: 30.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.534e-05/0.2436, allocations: 241 kB / 443 MB, free: 29.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.2438, allocations: 286.8 kB / 443.3 MB, free: 29.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.2439, allocations: 116.4 kB / 443.4 MB, free: 29.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.924e-05/0.244, allocations: 0.53 MB / 443.9 MB, free: 29.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.2441, allocations: 93.67 kB / 444 MB, free: 29.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.2444, allocations: 281.2 kB / 444.3 MB, free: 29.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.2448, allocations: 419.7 kB / 444.7 MB, free: 28.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2448, allocations: 0 / 444.7 MB, free: 28.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00067/0.2454, allocations: 0.4921 MB / 445.2 MB, free: 28.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.2455, allocations: 5.219 kB / 445.2 MB, free: 28.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2455, allocations: 9.594 kB / 445.2 MB, free: 28.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.2457, allocations: 52.73 kB / 445.2 MB, free: 28.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.2459, allocations: 93.33 kB / 445.3 MB, free: 28.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03355/0.2795, allocations: 15.47 MB / 460.8 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.2798, allocations: 15.92 kB / 460.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.2798, allocations: 19.88 kB / 460.8 MB, free: 13.97 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.28, allocations: 196.8 kB / 461 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.149e-05/0.28, allocations: 55.72 kB / 461.1 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.2811, allocations: 1.41 MB / 462.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003984/0.2815, allocations: 468.1 kB / 462.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2815, allocations: 8.062 kB / 462.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004114/0.2819, allocations: 0.7713 MB / 463.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.283, allocations: 1.23 MB / 464.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.283, allocations: 3.984 kB / 465 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.2832, allocations: 93.14 kB / 465 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001297/0.2833, allocations: 52.62 kB / 465.1 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.2833, allocations: 12.5 kB / 465.1 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004393/0.2837, allocations: 1.74 MB / 466.8 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2838, allocations: 7.469 kB / 466.9 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.2844, allocations: 0.7428 MB / 467.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.2844, allocations: 42.38 kB / 467.6 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.2844, allocations: 14.64 kB / 467.7 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.2846, allocations: 19.86 kB / 467.7 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.972e-05/0.2846, allocations: 59.12 kB / 467.7 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.2847, allocations: 19.8 kB / 467.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001095/0.2848, allocations: 229.4 kB / 468 MB, free: 7.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2848, allocations: 0 / 468 MB, free: 7.383 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00239/0.2872, allocations: 0.9542 MB / 468.9 MB, free: 6.465 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 (volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,$cse5.phase,$cse6.phase,volume.medium.state.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002061/0.2892, allocations: 1.384 MB / 470.3 MB, free: 5.266 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006559/0.2899, allocations: 0.7147 MB / 471 MB, free: 4.574 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2899, allocations: 0 / 471 MB, free: 4.574 MB / 330.7 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: HelmholtzMedia.HelmholtzFluids.Pentane.ThermodynamicState(fixedMassFlowRate.medium.sat.liq.phase, fixedMassFlowRate.medium.sat.liq.T, fixedMassFlowRate.medium.sat.liq.p, fixedMassFlowRate.medium.sat.liq.d, fixedMassFlowRate.medium.sat.liq.u, fixedMassFlowRate.medium.sat.liq.h, fixedMassFlowRate.medium.sat.liq.s) = $TMP_HelmholtzMedia_HelmholtzFluids_Pentane_SaturationProperties100.liq [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:6498:7-6498:46:writable] Error: Internal error No support of solving not real variables with a non-linear solver. Equation: HelmholtzMedia.HelmholtzFluids.Pentane.SaturationProperties(fixedMassFlowRate.medium.sat.psat, fixedMassFlowRate.medium.sat.Tsat, HelmholtzMedia.HelmholtzFluids.Pentane.ThermodynamicState(fixedMassFlowRate.medium.sat.liq.phase, fixedMassFlowRate.medium.sat.liq.T, fixedMassFlowRate.medium.sat.liq.p, fixedMassFlowRate.medium.sat.liq.d, fixedMassFlowRate.medium.sat.liq.u, fixedMassFlowRate.medium.sat.liq.h, fixedMassFlowRate.medium.sat.liq.s), HelmholtzMedia.HelmholtzFluids.Pentane.ThermodynamicState(fixedMassFlowRate.medium.sat.vap.phase, fixedMassFlowRate.medium.sat.vap.T, fixedMassFlowRate.medium.sat.vap.p, fixedMassFlowRate.medium.sat.vap.d, fixedMassFlowRate.medium.sat.vap.u, fixedMassFlowRate.medium.sat.vap.h, fixedMassFlowRate.medium.sat.vap.s)) = HelmholtzMedia.HelmholtzFluids.Pentane.setSat_p(volume.medium.p) solve for {fixedMassFlowRate.medium.sat.vap.d,fixedMassFlowRate.medium.sat.psat,fixedMassFlowRate.medium.sat.vap.s,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.vap.p,fixedMassFlowRate.medium.sat.liq.u,fixedMassFlowRate.medium.sat.liq.T,fixedMassFlowRate.medium.sat.Tsat,fixedMassFlowRate.medium.sat.liq.h,fixedMassFlowRate.medium.sat.vap.u,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.liq.d,fixedMassFlowRate.medium.sat.liq.s,fixedMassFlowRate.medium.sat.liq.p,fixedMassFlowRate.medium.sat.vap.T,fixedMassFlowRate.medium.sat.vap.h} [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1590:5-1590:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.9789145537652075]