Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTwoPhase.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.TestRunnerTwoPhase,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTwoPhase") translateModel(ExternalMedia.Test.GenericModels.TestRunnerTwoPhase,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.GenericModels.TestRunnerTwoPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 116.3 kB / 16.42 MB, free: 6.508 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.001002/0.001002, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.314/1.314, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01157/0.01157, allocations: 2.781 MB / 294 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 67.89 kB / 406.6 MB, free: 29.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07416/0.07536, allocations: 50.23 MB / 456.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.GenericModels.TestRunnerTwoPhase): time 0.2727/0.348, allocations: 106.3 MB / 0.55 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05523/0.4033, allocations: 59.85 MB / 0.6084 GB, free: 6.641 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00134/0.4047, allocations: 16 kB / 0.6084 GB, free: 6.625 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002551/0.4073, allocations: 1.185 MB / 0.6096 GB, free: 5.434 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03038/0.4377, allocations: 13.24 MB / 0.6225 GB, free: 8.148 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007391/0.4451, allocations: 3.176 MB / 0.6256 GB, free: 4.973 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003398/0.4485, allocations: 2.968 MB / 0.6285 GB, free: 1.992 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.4488, allocations: 181.7 kB / 0.6287 GB, free: 1.797 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.4501, allocations: 1.093 MB / 0.6298 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.4511, allocations: 0.9221 MB / 0.6307 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.4513, allocations: 144 kB / 0.6308 GB, free: 15.63 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02291/0.4742, allocations: 11.12 MB / 0.6417 GB, free: 4.508 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000338/0.4746, allocations: 382.3 kB / 0.642 GB, free: 4.133 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001265/0.4758, allocations: 1.027 MB / 0.643 GB, free: 3.102 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01833/0.4942, allocations: 8.7 MB / 0.6515 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4942, allocations: 0 / 0.6515 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4942, allocations: 0 / 0.6515 GB, free: 10.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.904e-05/0.4943, allocations: 4 kB / 0.6515 GB, free: 10.38 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.006997/0.5013, allocations: 3.303 MB / 0.6547 GB, free: 6.992 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.5013, allocations: 12.03 kB / 0.6548 GB, free: 6.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01498/0.5163, allocations: 1.865 MB / 0.6566 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.518, allocations: 1.099 MB / 0.6577 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.5182, allocations: 180.4 kB / 0.6578 GB, free: 3.793 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003745/0.5186, allocations: 196.6 kB / 0.658 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/0.5384, allocations: 6.857 MB / 0.6647 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.166e-05/0.5385, allocations: 7.875 kB / 0.6647 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/0.5387, allocations: 84 kB / 0.6648 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.805e-05/0.5387, allocations: 55.98 kB / 0.6649 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02162/0.5604, allocations: 8.23 MB / 0.6729 GB, free: 4.195 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.01239/0.5728, allocations: 15.56 MB / 0.6881 GB, free: 3 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01681/0.5896, allocations: 5.644 MB / 0.6936 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001969/0.5916, allocations: 1.221 MB / 0.6948 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2736/0.8652, allocations: 52.22 MB / 0.7458 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.8652, allocations: 63.44 kB / 0.7458 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=242): time 4.128e-06/0.8653, allocations: 0 / 0.7458 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=246): time 0.04038/0.9056, allocations: 14.41 MB / 0.7599 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.9057, allocations: 99.11 kB / 0.76 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.906, allocations: 353.3 kB / 0.7603 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003175/0.9063, allocations: 65.7 kB / 0.7604 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.9065, allocations: 0.5613 MB / 0.761 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005456/0.907, allocations: 0.8625 MB / 0.7618 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.9084, allocations: 0.9804 MB / 0.7628 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.966e-05/0.9085, allocations: 314 kB / 0.7631 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003301/0.9118, allocations: 2.078 MB / 0.7651 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/0.9155, allocations: 2.631 MB / 0.7677 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006851/0.9223, allocations: 4.507 MB / 0.7721 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-06/0.9224, allocations: 4 kB / 0.7721 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01018/0.9325, allocations: 5.552 MB / 0.7775 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.9326, allocations: 12.22 kB / 0.7775 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.9326, allocations: 20 kB / 0.7775 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.934, allocations: 310.2 kB / 0.7778 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/0.9373, allocations: 1.066 MB / 0.7788 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.9387, allocations: 1.891 MB / 0.7807 GB, free: 139.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.9405, allocations: 96.09 kB / 0.7808 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005622/0.9411, allocations: 403.5 kB / 0.7812 GB, free: 138.8 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.001136/0.9422, allocations: 428.3 kB / 0.7816 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006764/0.9429, allocations: 111.3 kB / 0.7817 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03175/0.9747, allocations: 46.83 MB / 0.8274 GB, free: 91.44 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.899e-05/0.9747, allocations: 23.94 kB / 0.8274 GB, free: 91.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.9748, allocations: 0 / 0.8274 GB, free: 91.42 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000339/0.9751, allocations: 453.4 kB / 0.8279 GB, free: 90.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003255/0.9754, allocations: 45.08 kB / 0.8279 GB, free: 90.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/0.9777, allocations: 363.3 kB / 0.8283 GB, free: 90.55 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003574/0.978, allocations: 194 kB / 0.8284 GB, free: 90.36 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.001021/0.9791, allocations: 0.6896 MB / 0.8291 GB, free: 89.69 MB / 0.5294 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ExternalMedia.Test.GenericModels.TestRunnerTwoPhase could not be translated