Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.001416/0.001416, allocations: 93.06 kB / 19.65 MB, free: 276 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.001167/0.001167, allocations: 169 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 0.9838/0.9838, 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.03233/0.03233, allocations: 7.517 MB / 267.5 MB, free: 6.008 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.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.316e-06/3.316e-06, allocations: 7.938 kB / 338.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.942e-05, allocations: 2.312 kB / 338.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.02134/0.02137, allocations: 21.7 MB / 360.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03753/0.0589, allocations: 33.56 MB / 394 MB, free: 3.477 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.05938, allocations: 15.88 kB / 394 MB, free: 3.461 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.06056, allocations: 461.8 kB / 394.4 MB, free: 3.008 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.06213, allocations: 0.8782 MB / 395.3 MB, free: 2.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03079/0.09292, allocations: 11.22 MB / 406.5 MB, free: 6.852 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.09557, allocations: 2.013 MB / 408.5 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.09593, allocations: 135.7 kB / 408.7 MB, free: 4.684 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.09792, allocations: 1.08 MB / 409.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008114/0.09873, allocations: 482.6 kB / 410.2 MB, free: 3.129 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.09883, allocations: 60 kB / 410.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1586/0.2575, allocations: 8.139 MB / 418.4 MB, free: 34.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.2577, allocations: 184 kB / 418.6 MB, free: 34.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006996/0.2584, allocations: 303.4 kB / 418.9 MB, free: 34.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.269, allocations: 5.252 MB / 424.2 MB, free: 34.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.269, allocations: 0 / 424.2 MB, free: 34.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.269, allocations: 0.9062 kB / 424.2 MB, free: 34.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.269, allocations: 0 / 424.2 MB, free: 34.13 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.002773/0.2718, allocations: 1.608 MB / 425.8 MB, free: 33.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2718, allocations: 10.38 kB / 425.8 MB, free: 33.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005514/0.2724, allocations: 233.3 kB / 426 MB, free: 33.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.2728, allocations: 352.5 kB / 426.3 MB, free: 32.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.2728, allocations: 43.34 kB / 426.4 MB, free: 32.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.2729, allocations: 48.16 kB / 426.4 MB, free: 32.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008727/0.2737, allocations: 0.8237 MB / 427.3 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2737, allocations: 0 / 427.3 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.2738, allocations: 18.69 kB / 427.3 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.2738, allocations: 21.25 kB / 427.3 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005871/0.2744, allocations: 391.7 kB / 427.7 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2761, allocations: 2.382 MB / 430.1 MB, free: 31.1 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006496/0.2768, allocations: 411.1 kB / 430.5 MB, free: 31.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.277, allocations: 186.5 kB / 430.6 MB, free: 31.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0316/0.3086, allocations: 13.8 MB / 444.5 MB, free: 28.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.3086, allocations: 41.52 kB / 444.5 MB, free: 28.33 MB / 330.7 MB Notification: Performance of pre-optimization done (n=109): time 3.176e-06/0.3086, allocations: 0 / 444.5 MB, free: 28.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=117): time 0.004066/0.3127, allocations: 2.201 MB / 446.7 MB, free: 27.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.3127, allocations: 59.28 kB / 446.7 MB, free: 27.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.3129, allocations: 334.6 kB / 447.1 MB, free: 27.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3129, allocations: 37.48 kB / 447.1 MB, free: 27.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.313, allocations: 280.8 kB / 447.4 MB, free: 27.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.3132, allocations: 412.2 kB / 447.8 MB, free: 26.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.3133, allocations: 166.1 kB / 448 MB, free: 26.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.866e-05/0.3134, allocations: 0.5573 MB / 448.5 MB, free: 26.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.3136, allocations: 149.6 kB / 448.7 MB, free: 26.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.3138, allocations: 356.2 kB / 449 MB, free: 25.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004699/0.3143, allocations: 0.539 MB / 449.5 MB, free: 25.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3143, allocations: 7.719 kB / 449.5 MB, free: 25.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.0007957/0.3151, allocations: 0.7081 MB / 450.3 MB, free: 24.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3151, allocations: 8 kB / 450.3 MB, free: 24.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3151, allocations: 480 / 450.3 MB, free: 24.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.3154, allocations: 105 kB / 450.4 MB, free: 24.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004664/0.3159, allocations: 192.7 kB / 450.6 MB, free: 24.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03293/0.3488, allocations: 21.23 MB / 471.8 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.3493, allocations: 34.16 kB / 471.8 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.3494, allocations: 30.55 kB / 471.9 MB, free: 2.859 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.0002393/0.3496, allocations: 203.9 kB / 472.1 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.163e-05/0.3497, allocations: 78.23 kB / 472.1 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.3512, allocations: 2.078 MB / 474.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000796/0.352, allocations: 0.8019 MB / 475 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3521, allocations: 3.938 kB / 475 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001244/0.3533, allocations: 1.039 MB / 476.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.3554, allocations: 1.75 MB / 477.8 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.3554, allocations: 4 kB / 477.8 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.3557, allocations: 130.2 kB / 477.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003028/0.356, allocations: 181.6 kB / 478.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.356, allocations: 23.67 kB / 478.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002149/0.3582, allocations: 5.106 MB / 483.2 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3582, allocations: 0 / 483.2 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.3594, allocations: 1.186 MB / 484.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.3595, allocations: 55.5 kB / 484.5 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.3596, allocations: 17.5 kB / 484.5 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.3598, allocations: 27.23 kB / 484.5 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3599, allocations: 79.75 kB / 484.6 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.3599, allocations: 22.42 kB / 484.6 MB, free: 6.914 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001707/0.3601, allocations: 244.8 kB / 484.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3601, allocations: 0 / 484.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003038/0.3631, allocations: 1.015 MB / 485.9 MB, free: 5.73 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.002675/0.3658, allocations: 1.407 MB / 487.3 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.3675, allocations: 1.252 MB / 488.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3675, allocations: 0 / 488.5 MB, free: 3.309 MB / 346.7 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: HelmholtzMedia.HelmholtzFluids.Ethanol.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_Ethanol_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.Ethanol.SaturationProperties(fixedMassFlowRate.medium.sat.psat, fixedMassFlowRate.medium.sat.Tsat, HelmholtzMedia.HelmholtzFluids.Ethanol.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.Ethanol.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.Ethanol.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.0651399181224406]