Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadModel(ModelicaTest): time 1.812/1.812, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004179/0.0004181, allocations: 8 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.04723/0.3785, allocations: 31.44 MB / 363.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03206/0.4106, allocations: 18.15 MB / 381.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007142/0.4114, allocations: 15.88 kB / 381.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.4125, allocations: 238.9 kB / 381.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01495/0.4275, allocations: 3.546 MB / 385.2 MB, free: 9.043 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006445/0.4339, allocations: 1.574 MB / 386.8 MB, free: 7.465 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.4356, allocations: 0.7001 MB / 387.5 MB, free: 6.758 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005906/0.4362, allocations: 287.4 kB / 387.8 MB, free: 6.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02362/0.4598, allocations: 8.919 MB / 396.7 MB, free: 13.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006742/0.4605, allocations: 246.9 kB / 396.9 MB, free: 13.31 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.4606, allocations: 20 kB / 396.9 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01946/0.4801, allocations: 6.992 MB / 403.9 MB, free: 6.293 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.4804, allocations: 91.66 kB / 404 MB, free: 6.203 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002308/0.4806, allocations: 121.5 kB / 404.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008093/0.4887, allocations: 3.001 MB / 407.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.4888, allocations: 0 / 407.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4888, allocations: 4 kB / 407.1 MB, free: 3.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.4888, allocations: 0 / 407.1 MB, free: 3.066 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.004014/0.4928, allocations: 1.205 MB / 408.3 MB, free: 1.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4929, allocations: 8.031 kB / 408.4 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002278/0.4952, allocations: 235.1 kB / 408.6 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007891/0.496, allocations: 382.1 kB / 409 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.666e-05/0.4961, allocations: 33 kB / 409 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.4962, allocations: 36 kB / 409 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.4985, allocations: 0.6886 MB / 409.7 MB, free: 360 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.4986, allocations: 0 / 409.7 MB, free: 360 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.41e-05/0.4987, allocations: 20 kB / 409.7 MB, free: 340 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.4987, allocations: 8 kB / 409.7 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002493/0.5012, allocations: 0.5918 MB / 410.3 MB, free: 15.73 MB / 346.7 MB 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.005005/0.5062, allocations: 3.207 MB / 413.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.5083, allocations: 426.4 kB / 414 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5786/1.087, allocations: 81.67 MB / 495.6 MB, free: 134.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.908e-05/1.087, allocations: 42.67 kB / 495.7 MB, free: 134.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 3.135e-06/1.087, allocations: 0 / 495.7 MB, free: 134.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.004044/1.091, allocations: 0.8411 MB / 496.5 MB, free: 133.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/1.091, allocations: 113.6 kB / 496.6 MB, free: 133.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/1.092, allocations: 343.3 kB / 497 MB, free: 133.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/1.092, allocations: 34.83 kB / 497 MB, free: 133.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/1.092, allocations: 321.9 kB / 497.3 MB, free: 133.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.135e-05/1.092, allocations: 95.14 kB / 497.4 MB, free: 133.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/1.092, allocations: 9.438 kB / 497.4 MB, free: 133.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.168e-05/1.092, allocations: 329.4 kB / 497.7 MB, free: 132.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005388/1.093, allocations: 132.5 kB / 497.9 MB, free: 132.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006412/1.093, allocations: 336.4 kB / 498.2 MB, free: 132.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/1.094, allocations: 167.4 kB / 498.3 MB, free: 132.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/1.094, allocations: 2.438 kB / 498.3 MB, free: 132.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00164/1.096, allocations: 0.5076 MB / 498.9 MB, free: 132.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/1.096, allocations: 278.9 kB / 499.1 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/1.096, allocations: 5.719 kB / 499.1 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003923/1.1, allocations: 232.9 kB / 499.4 MB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007385/1.1, allocations: 107.2 kB / 499.5 MB, free: 131.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005947/1.101, allocations: 0.5957 MB / 0.4883 GB, free: 131.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/1.102, allocations: 68.12 kB / 0.4884 GB, free: 131 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.686e-05/1.102, allocations: 23.66 kB / 0.4884 GB, free: 131 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/1.102, allocations: 2.688 kB / 0.4884 GB, free: 131 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001426/1.103, allocations: 451.3 kB / 0.4889 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/1.103, allocations: 5.5 kB / 0.4889 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/1.103, allocations: 13.66 kB / 0.4889 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007312/1.104, allocations: 121.2 kB / 0.489 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/1.104, allocations: 8.25 kB / 0.489 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/1.104, allocations: 54.64 kB / 0.4891 GB, free: 130.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/1.105, allocations: 31.23 kB / 0.4891 GB, free: 130.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003292/1.105, allocations: 254.9 kB / 0.4893 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/1.105, allocations: 35.38 kB / 0.4894 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003391/1.108, allocations: 1.892 MB / 0.4912 GB, free: 129.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.108, allocations: 7.562 kB / 0.4912 GB, free: 129.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/1.108, allocations: 6.625 kB / 0.4912 GB, free: 129.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/1.109, allocations: 236.5 kB / 0.4914 GB, free: 129.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/1.109, allocations: 6.656 kB / 0.4915 GB, free: 129.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/1.11, allocations: 41.36 kB / 0.4915 GB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/1.11, allocations: 29.2 kB / 0.4915 GB, free: 129.1 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): -simpleGenericOrifice.dp_fg = 101325.0 - massFlowRate1.ports[1].p 2/2 (1): simpleGenericOrifice.m_flow = Modelica.Fluid.Utilities.regRoot2(simpleGenericOrifice.dp_fg, simpleGenericOrifice.dp_small, simpleGenericOrifice.state_a.d / $cse1, simpleGenericOrifice.state_b.d / $cse1, false, 1.0) 3/3 (1): simpleGenericOrifice.state_a.d = $cse2.rho 4/4 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 5/20 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 6/21 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, 323.15, 0) Variables: 1: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: massFlowRate1.ports[1].p:VARIABLE(flow=false min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "Thermodynamic pressure in the connection point" type: Real [1] 5: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 16: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.R:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 24: massFlowRate1.ports[1].h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] 25: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 26: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 31: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 35: simpleGenericOrifice.state_a.d:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 36: simpleGenericOrifice.dp_fg:VARIABLE(start = simpleGenericOrifice.dp_start unit = "Pa" ) "pressure loss due to friction and gravity" type: Real [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001054/1.111, allocations: 0.5148 MB / 0.492 GB, free: 128.6 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.