Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.001022/0.001022, 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.001174/0.001174, allocations: 169.3 kB / 23.02 MB, free: 1.555 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.033/1.033, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.03327/0.03327, allocations: 7.517 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.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 338.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.964e-05, allocations: 2.312 kB / 338.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.01742/0.01744, allocations: 21.82 MB / 360.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02511/0.04254, allocations: 34.12 MB / 394.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004016/0.04295, allocations: 15.88 kB / 394.7 MB, free: 2.777 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.0441, allocations: 0.5559 MB / 395.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.04523, allocations: 0.8861 MB / 396.1 MB, free: 1.328 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02032/0.06555, allocations: 11.58 MB / 407.7 MB, free: 5.707 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002011/0.06756, allocations: 2.071 MB / 409.8 MB, free: 3.625 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.06783, allocations: 131.7 kB / 409.9 MB, free: 3.484 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.06922, allocations: 1.111 MB / 411 MB, free: 2.371 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006356/0.06985, allocations: 482.6 kB / 411.5 MB, free: 1.898 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.567e-05/0.06994, allocations: 60 kB / 411.5 MB, free: 1.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1449/0.2148, allocations: 8.366 MB / 419.9 MB, free: 34.78 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000267/0.2151, allocations: 188.4 kB / 420.1 MB, free: 34.78 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007231/0.2158, allocations: 310.1 kB / 420.4 MB, free: 34.78 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.2294, allocations: 5.238 MB / 425.6 MB, free: 34.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.2294, allocations: 2.781 kB / 425.6 MB, free: 34.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2294, allocations: 0 / 425.6 MB, free: 34.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.2294, allocations: 2 kB / 425.6 MB, free: 34.64 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002744/0.2321, allocations: 1.604 MB / 427.2 MB, free: 33.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2322, allocations: 10.59 kB / 427.2 MB, free: 33.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005576/0.2327, allocations: 234.3 kB / 427.5 MB, free: 33.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.2331, allocations: 353.9 kB / 427.8 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.2332, allocations: 39.34 kB / 427.8 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.265e-05/0.2332, allocations: 52.44 kB / 427.9 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008998/0.2341, allocations: 0.8163 MB / 428.7 MB, free: 33.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.2342, allocations: 10.88 kB / 428.7 MB, free: 33.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.2342, allocations: 18.06 kB / 428.7 MB, free: 33.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.2342, allocations: 27.19 kB / 428.8 MB, free: 33.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005911/0.2348, allocations: 387.8 kB / 429.1 MB, free: 33.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.2366, allocations: 2.384 MB / 431.5 MB, free: 31.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/0.2372, allocations: 409.1 kB / 431.9 MB, free: 31.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.2374, allocations: 183.3 kB / 432.1 MB, free: 31.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03557/0.273, allocations: 13.8 MB / 445.9 MB, free: 28.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.273, allocations: 44.89 kB / 446 MB, free: 28.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=109): time 3.396e-06/0.273, allocations: 0 / 446 MB, free: 28.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=117): time 0.005154/0.2782, allocations: 2.199 MB / 448.2 MB, free: 26.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.2782, allocations: 59.91 kB / 448.2 MB, free: 26.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.2784, allocations: 324.1 kB / 448.5 MB, free: 26.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.2785, allocations: 37.52 kB / 448.6 MB, free: 26.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2786, allocations: 291 kB / 448.8 MB, free: 26.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.2788, allocations: 411.7 kB / 449.3 MB, free: 25.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.2789, allocations: 167.7 kB / 449.4 MB, free: 25.67 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2791, allocations: 0.5538 MB / 450 MB, free: 25.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.2793, allocations: 144.7 kB / 450.1 MB, free: 25.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.2796, allocations: 354.6 kB / 450.5 MB, free: 24.63 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.2802, allocations: 0.5491 MB / 451 MB, free: 24.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2802, allocations: 0 / 451 MB, free: 24.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.0009991/0.2812, allocations: 0.7081 MB / 451.7 MB, free: 23.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2812, allocations: 12.06 kB / 451.7 MB, free: 23.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.2812, allocations: 4.547 kB / 451.7 MB, free: 23.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/0.2816, allocations: 94.61 kB / 451.8 MB, free: 23.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006183/0.2822, allocations: 193.2 kB / 452 MB, free: 23.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04496/0.3271, allocations: 21.22 MB / 473.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.3275, allocations: 23.67 kB / 473.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.3275, allocations: 35.67 kB / 473.3 MB, free: 1.824 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.3277, allocations: 207.5 kB / 473.5 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.603e-05/0.3278, allocations: 75.38 kB / 473.6 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.3294, allocations: 2.077 MB / 475.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008936/0.3303, allocations: 0.8026 MB / 476.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3303, allocations: 10.67 kB / 476.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009641/0.3312, allocations: 1.037 MB / 477.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.3334, allocations: 1.753 MB / 479.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3334, allocations: 0 / 479.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.3337, allocations: 130.3 kB / 479.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00032/0.334, allocations: 178 kB / 479.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.3341, allocations: 27.67 kB / 479.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.3361, allocations: 5.106 MB / 484.7 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3361, allocations: 0 / 484.7 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.3376, allocations: 1.187 MB / 485.9 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.312e-05/0.3377, allocations: 51.56 kB / 485.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.3377, allocations: 13.94 kB / 485.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.3379, allocations: 29.08 kB / 486 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3381, allocations: 78.88 kB / 486 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.3381, allocations: 25.73 kB / 486.1 MB, free: 5.875 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.3383, allocations: 242.3 kB / 486.3 MB, free: 5.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3383, allocations: 0 / 486.3 MB, free: 5.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002536/0.3408, allocations: 1.024 MB / 487.3 MB, free: 4.688 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 (volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,$cse7.phase,$cse10.phase,$cse11.phase,$cse12.phase,volume.medium.state.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002994/0.3438, allocations: 1.403 MB / 488.7 MB, free: 3.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.3457, allocations: 1.241 MB / 490 MB, free: 2.273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3457, allocations: 4 kB / 490 MB, free: 2.27 MB / 346.7 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: HelmholtzMedia.HelmholtzFluids.R134a.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_R134a_SaturationProperties146.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.R134a.SaturationProperties(fixedMassFlowRate.medium.sat.psat, fixedMassFlowRate.medium.sat.Tsat, HelmholtzMedia.HelmholtzFluids.R134a.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.R134a.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.R134a.setSat_p(volume.medium.p) solve for {fixedMassFlowRate.medium.sat.vap.s,fixedMassFlowRate.medium.sat.liq.u,fixedMassFlowRate.medium.sat.liq.p,fixedMassFlowRate.medium.sat.psat,fixedMassFlowRate.medium.sat.liq.s,fixedMassFlowRate.medium.sat.vap.p,fixedMassFlowRate.medium.sat.liq.d,fixedMassFlowRate.medium.sat.vap.u,fixedMassFlowRate.medium.sat.vap.d,fixedMassFlowRate.medium.sat.vap.T,fixedMassFlowRate.medium.sat.liq.h,fixedMassFlowRate.medium.sat.liq.T,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.vap.h,fixedMassFlowRate.medium.sat.Tsat,fixedMassFlowRate.medium.sat.liq.phase} [/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: 2.047319729346782]