Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTranscritical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.GenericModels.TestRunnerTranscritical,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTranscritical") translateModel(ExternalMedia.Test.GenericModels.TestRunnerTranscritical,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 110.5 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 190.7 kB / 17.35 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01145/0.01145, allocations: 2.784 MB / 294 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 406.6 MB, free: 29.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07513, allocations: 50.22 MB / 456.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.GenericModels.TestRunnerTranscritical): time 0.2702/0.3453, allocations: 106.3 MB / 0.55 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05422/0.3996, allocations: 59.84 MB / 0.6084 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001607/0.4012, allocations: 12 kB / 0.6084 GB, free: 6.621 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002731/0.4039, allocations: 1.192 MB / 0.6096 GB, free: 5.422 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03122/0.4352, allocations: 13.24 MB / 0.6225 GB, free: 8.137 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007698/0.4429, allocations: 3.18 MB / 0.6256 GB, free: 4.957 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00373/0.4467, allocations: 2.971 MB / 0.6285 GB, free: 1.973 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.4469, allocations: 181.7 kB / 0.6287 GB, free: 1.777 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.4484, allocations: 1.089 MB / 0.6298 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.4495, allocations: 0.9258 MB / 0.6307 GB, free: 15.75 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.4497, allocations: 148 kB / 0.6308 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02491/0.4746, allocations: 11.12 MB / 0.6417 GB, free: 4.488 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005088/0.4751, allocations: 382.3 kB / 0.642 GB, free: 4.113 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.4765, allocations: 1.019 MB / 0.643 GB, free: 3.09 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01985/0.4963, allocations: 8.704 MB / 0.6515 GB, free: 10.36 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4963, allocations: 0 / 0.6515 GB, free: 10.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4964, allocations: 0 / 0.6515 GB, free: 10.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.4964, allocations: 0 / 0.6515 GB, free: 10.36 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.006012/0.5024, allocations: 3.307 MB / 0.6547 GB, free: 6.977 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.5024, allocations: 8.031 kB / 0.6548 GB, free: 6.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01515/0.5176, allocations: 1.873 MB / 0.6566 GB, free: 5.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.5192, allocations: 1.099 MB / 0.6577 GB, free: 3.953 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.5194, allocations: 168.5 kB / 0.6578 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.5197, allocations: 200.5 kB / 0.658 GB, free: 3.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02098/0.5407, allocations: 6.869 MB / 0.6647 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/0.5408, allocations: 0 / 0.6647 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.541, allocations: 91.94 kB / 0.6648 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.627e-05/0.541, allocations: 52 kB / 0.6649 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02277/0.5638, allocations: 8.23 MB / 0.6729 GB, free: 4.176 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.5773, allocations: 15.55 MB / 0.6881 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01806/0.5954, allocations: 5.644 MB / 0.6936 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.5975, allocations: 1.221 MB / 0.6948 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3252/0.9227, allocations: 52.21 MB / 0.7458 GB, free: 63.29 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.9228, allocations: 63.62 kB / 0.7458 GB, free: 63.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=242): time 4.037e-06/0.9228, allocations: 1.641 kB / 0.7458 GB, free: 63.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=246): time 0.04206/0.9649, allocations: 14.41 MB / 0.7599 GB, free: 62.48 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.9649, allocations: 102.4 kB / 0.76 GB, free: 62.38 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.9653, allocations: 353.1 kB / 0.7603 GB, free: 62.26 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003233/0.9656, allocations: 63.92 kB / 0.7604 GB, free: 62.23 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.9658, allocations: 0.5622 MB / 0.7609 GB, free: 61.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006478/0.9664, allocations: 0.8595 MB / 0.7618 GB, free: 61.47 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.9679, allocations: 0.9786 MB / 0.7627 GB, free: 61.44 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.9679, allocations: 315 kB / 0.763 GB, free: 61.13 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003331/0.9713, allocations: 2.077 MB / 0.7651 GB, free: 61.12 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003827/0.9751, allocations: 2.64 MB / 0.7676 GB, free: 60.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007192/0.9823, allocations: 4.508 MB / 0.7721 GB, free: 59.35 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.9823, allocations: 4 kB / 0.7721 GB, free: 59.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01045/0.9928, allocations: 5.555 MB / 0.7775 GB, free: 56.64 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.9928, allocations: 16.03 kB / 0.7775 GB, free: 56.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.9928, allocations: 16 kB / 0.7775 GB, free: 56.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.9942, allocations: 305.7 kB / 0.7778 GB, free: 56.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003365/0.9976, allocations: 1.066 MB / 0.7788 GB, free: 55.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.999, allocations: 1.89 MB / 0.7807 GB, free: 54.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/1.001, allocations: 94.56 kB / 0.7808 GB, free: 53.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005895/1.001, allocations: 406.5 kB / 0.7812 GB, free: 53.78 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 17 (testBasePropertiesDynamic.medium.phase,testBasePropertiesImplicit.medium2.baseProperties.phase,testBasePropertiesImplicit.medium1.baseProperties.phase,testBasePropertiesExplicit.medium2.baseProperties.phase,testBasePropertiesExplicit.medium1.baseProperties.phase,testStatesSat.state2.phase,testStatesSat.state1.phase,testStates.state2.phase,testStates.state1.phase,testStatesSat.completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,testStatesSat.completeBubbleDewStates2.bubbleStateOnePhase.state.phase,testStatesSat.completeBubbleDewStates2.dewStateTwoPhase.state.phase,testStatesSat.completeBubbleDewStates2.dewStateOnePhase.state.phase,testStatesSat.completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,testStatesSat.completeBubbleDewStates1.bubbleStateOnePhase.state.phase,testStatesSat.completeBubbleDewStates1.dewStateTwoPhase.state.phase,testStatesSat.completeBubbleDewStates1.dewStateOnePhase.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 287 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,8), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001154/1.003, allocations: 430.5 kB / 0.7816 GB, free: 53.56 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/1.003, allocations: 111.3 kB / 0.7817 GB, free: 53.45 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03304/1.036, allocations: 46.84 MB / 0.8274 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/1.036, allocations: 21.86 kB / 0.8274 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.036, allocations: 0 / 0.8274 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000341/1.037, allocations: 451.8 kB / 0.8279 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003548/1.037, allocations: 48 kB / 0.8279 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002389/1.04, allocations: 363.3 kB / 0.8283 GB, free: 8.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/1.04, allocations: 195.5 kB / 0.8285 GB, free: 8.238 MB / 0.5294 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): testBasePropertiesImplicit.medium1.baseProperties.phase = if testBasePropertiesImplicit.medium1.completeState.h < $cse8.h or testBasePropertiesImplicit.medium1.completeState.h > $cse7.h or p_in > 2.2064e7 then 1 else 2 2/2 (16): $cse11 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(p_in, testBasePropertiesImplicit.medium1.completeState.h, testBasePropertiesImplicit.medium1.baseProperties.phase, 0) 3/18 (1): T_in = $cse11.T Variables: 1: $cse11.dpT:VARIABLE(protected = true ) type: Real unreplaceable 2: testBasePropertiesImplicit.medium1.completeState.h:VARIABLE(min = -1e10 max = 1e10 start = testBasePropertiesImplicit.hstart unit = "J/kg" nominal = 5e5 ) type: Real 3: $cse11.R_s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse11.p:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse11.T:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse11.phase:DISCRETE(protected = true ) type: Integer unreplaceable 7: $cse11.region:DISCRETE(protected = true ) type: Integer unreplaceable 8: $cse11.x:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse11.cv:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse11.rho:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse11.pt:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse11.pd:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse11.h:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse11.s:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse11.vp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse11.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse11.cp:VARIABLE(protected = true ) type: Real unreplaceable 18: testBasePropertiesImplicit.medium1.baseProperties.phase:DISCRETE(min = 0 max = 2 start = 1 fixed = false ) "2 for two-phase, 1 for one-phase, 0 if not known" type: Integer [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001009/1.041, allocations: 0.6828 MB / 0.8291 GB, free: 7.582 MB / 0.5294 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ExternalMedia.Test.GenericModels.TestRunnerTranscritical could not be translated