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.Sources.TestSources.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.Sources.TestSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|boundary.ports.1..Xi_outflow.1.|boundary.ports.1..C_outflow.1.|boundary1.ports.1..m_flow|boundary1.ports.1..p|boundary1.ports.1..h_outflow|boundary1.ports.1..Xi_outflow.1.|boundary1.ports.1..C_outflow.1.|boundary2.ports.1..m_flow|boundary2.ports.1..p|boundary2.ports.1..h_outflow|boundary2.ports.1..Xi_outflow.1.|boundary2.ports.1..C_outflow.1.|boundary3.ports.1..m_flow|boundary3.ports.1..p|boundary3.ports.1..h_outflow|boundary3.ports.1..Xi_outflow.1.|boundary3.ports.1..C_outflow.1.|boundary4.ports.1..m_flow|boundary4.ports.1..p|boundary4.ports.1..h_outflow|boundary4.ports.1..Xi_outflow.1.|boundary4.ports.1..C_outflow.1.|boundary5.ports.1..m_flow|boundary5.ports.1..p|boundary5.ports.1..h_outflow|boundary5.ports.1..Xi_outflow.1.|boundary5.ports.1..C_outflow.1.|boundary6.ports.1..m_flow|boundary6.ports.1..p|boundary6.ports.1..h_outflow|boundary6.ports.1..Xi_outflow.1.|boundary6.ports.1..C_outflow.1.|boundary6.ports.2..m_flow|boundary6.ports.2..p|boundary6.ports.2..h_outflow|boundary6.ports.2..Xi_outflow.1.|boundary6.ports.2..C_outflow.1.|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|pipe3.port_b.m_flow|pipe3.port_b.p|pipe3.port_b.h_outflow|C.y|P.y|traceSubstance1.port_b.m_flow|traceSubstance1.port_b.p|traceSubstance1.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadModel(ModelicaTest): time 1.8/1.8, allocations: 209.2 MB / 225.4 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004099/0.0004099, allocations: 12 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3298, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.7152/1.045, allocations: 242.3 MB / 0.5607 GB, free: 8.621 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04627/1.091, allocations: 23.39 MB / 0.5835 GB, free: 2.637 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002783/1.094, allocations: 71 kB / 0.5836 GB, free: 2.605 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003766/1.098, allocations: 0.8034 MB / 0.5844 GB, free: 1.953 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02143/1.12, allocations: 5.206 MB / 0.5895 GB, free: 12.91 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02593/1.146, allocations: 6.527 MB / 0.5958 GB, free: 6.363 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007884/1.153, allocations: 3.448 MB / 0.5992 GB, free: 2.906 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003522/1.157, allocations: 1.575 MB / 0.6007 GB, free: 1.312 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01643/1.173, allocations: 4.778 MB / 0.6054 GB, free: 12.52 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00506/1.179, allocations: 1.827 MB / 0.6072 GB, free: 10.69 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008142/1.179, allocations: 128 kB / 0.6073 GB, free: 10.57 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03922/1.219, allocations: 14.38 MB / 0.6214 GB, free: 12.17 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/1.221, allocations: 0.8962 MB / 0.6222 GB, free: 11.27 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/1.222, allocations: 0.4927 MB / 0.6227 GB, free: 10.77 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02236/1.244, allocations: 7.555 MB / 0.6301 GB, free: 3.203 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/1.244, allocations: 4 kB / 0.6301 GB, free: 3.199 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.43e-06/1.244, allocations: 0 / 0.6301 GB, free: 3.199 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.801e-05/1.245, allocations: 7.938 kB / 0.6301 GB, free: 3.191 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.01556/1.26, allocations: 4.124 MB / 0.6341 GB, free: 14.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/1.26, allocations: 8.031 kB / 0.6341 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001547/1.262, allocations: 273.1 kB / 0.6344 GB, free: 14.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00392/1.266, allocations: 1.373 MB / 0.6357 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/1.266, allocations: 151.5 kB / 0.6359 GB, free: 13.12 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004979/1.266, allocations: 180 kB / 0.636 GB, free: 12.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008161/1.275, allocations: 2.989 MB / 0.639 GB, free: 9.891 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.302e-05/1.275, allocations: 3.938 kB / 0.639 GB, free: 9.887 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003991/1.275, allocations: 83.95 kB / 0.6391 GB, free: 9.805 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003489/1.275, allocations: 171.6 kB / 0.6392 GB, free: 9.637 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009265/1.285, allocations: 3.278 MB / 0.6424 GB, free: 6.355 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2978/1.583, allocations: 11.1 MB / 0.6533 GB, free: 202.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006205/1.589, allocations: 1.927 MB / 0.6551 GB, free: 202.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003576/1.592, allocations: 3.49 MB / 0.6585 GB, free: 198.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.155e-05/1.593, allocations: 55.69 kB / 0.6586 GB, free: 198.4 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001518/1.594, allocations: 202.1 kB / 0.6588 GB, free: 198.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 5.66e-06/1.594, allocations: 0.875 kB / 0.6588 GB, free: 198.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=150): time 0.009835/1.604, allocations: 2.93 MB / 0.6617 GB, free: 197.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/1.604, allocations: 200.6 kB / 0.6618 GB, free: 197.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/1.607, allocations: 1.508 MB / 0.6633 GB, free: 196.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004826/1.607, allocations: 56.58 kB / 0.6634 GB, free: 196.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000683/1.608, allocations: 0.9626 MB / 0.6643 GB, free: 195.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006126/1.609, allocations: 0.522 MB / 0.6648 GB, free: 195.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/1.609, allocations: 47.88 kB / 0.6649 GB, free: 195.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/1.609, allocations: 397.5 kB / 0.6652 GB, free: 194.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00267/1.612, allocations: 0.8864 MB / 0.6661 GB, free: 194.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00302/1.615, allocations: 1.595 MB / 0.6677 GB, free: 193.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003295/1.618, allocations: 1.281 MB / 0.6689 GB, free: 192.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.273e-05/1.618, allocations: 5.5 kB / 0.6689 GB, free: 192.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.00825/1.626, allocations: 2.992 MB / 0.6719 GB, free: 191.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004708/1.627, allocations: 0.8645 MB / 0.6727 GB, free: 190.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/1.627, allocations: 19.78 kB / 0.6727 GB, free: 190.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004676/1.632, allocations: 0.6606 MB / 0.6734 GB, free: 190.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/1.635, allocations: 0.4933 MB / 0.6738 GB, free: 190 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/1.637, allocations: 1.523 MB / 0.6753 GB, free: 188.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/1.641, allocations: 161.8 kB / 0.6755 GB, free: 188.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004465/1.641, allocations: 162.2 kB / 0.6756 GB, free: 188.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/1.641, allocations: 3.969 kB / 0.6756 GB, free: 188.6 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007152/1.648, allocations: 2.801 MB / 0.6784 GB, free: 187.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/1.648, allocations: 19.81 kB / 0.6784 GB, free: 187.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001837/1.65, allocations: 343 kB / 0.6787 GB, free: 187 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003901/1.654, allocations: 0.5339 MB / 0.6792 GB, free: 186.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/1.655, allocations: 1.276 MB / 0.6805 GB, free: 185.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002453/1.658, allocations: 137.4 kB / 0.6806 GB, free: 185.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003714/1.658, allocations: 160.8 kB / 0.6808 GB, free: 185.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001556/1.66, allocations: 0.6359 MB / 0.6814 GB, free: 185.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005194/1.66, allocations: 190.3 kB / 0.6816 GB, free: 185 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009059/1.669, allocations: 3.277 MB / 0.6848 GB, free: 183.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/1.669, allocations: 11.78 kB / 0.6848 GB, free: 183.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/1.669, allocations: 0 / 0.6848 GB, free: 183.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007482/1.67, allocations: 297.2 kB / 0.6851 GB, free: 182.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005354/1.671, allocations: 27.94 kB / 0.6851 GB, free: 182.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.673, allocations: 101.8 kB / 0.6852 GB, free: 182.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/1.673, allocations: 119.9 kB / 0.6853 GB, free: 182.8 MB / 490.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004511/1.677, allocations: 1.377 MB / 0.6867 GB, free: 182.1 MB / 490.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.