Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadModel(ModelicaTest): time 2.439/2.439, allocations: 234.9 MB / 251.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006138/0.0006138, allocations: 16 kB / 315 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4076, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.7921/1.2, allocations: 242.7 MB / 0.5981 GB, free: 3.973 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.05033/1.25, allocations: 23.52 MB / 0.6211 GB, free: 12.41 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/1.253, allocations: 67.44 kB / 0.6212 GB, free: 12.34 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00372/1.257, allocations: 0.8319 MB / 0.622 GB, free: 11.5 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02296/1.28, allocations: 5.204 MB / 0.6271 GB, free: 6.285 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02702/1.307, allocations: 6.535 MB / 0.6334 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.008983/1.316, allocations: 3.452 MB / 0.6368 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004393/1.32, allocations: 1.58 MB / 0.6384 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01917/1.34, allocations: 4.809 MB / 0.6431 GB, free: 5.848 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005861/1.346, allocations: 1.843 MB / 0.6449 GB, free: 4 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001205/1.347, allocations: 128 kB / 0.645 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04285/1.39, allocations: 14.52 MB / 0.6591 GB, free: 5.344 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.00249/1.392, allocations: 0.9001 MB / 0.66 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001568/1.394, allocations: 0.5005 MB / 0.6605 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.5307/1.925, allocations: 7.546 MB / 0.6679 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/1.925, allocations: 0 / 0.6679 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.948e-06/1.925, allocations: 0 / 0.6679 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001677/1.925, allocations: 0 / 0.6679 GB, free: 18.53 MB / 0.5105 GB 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.0198/1.945, allocations: 4.131 MB / 0.6719 GB, free: 16.42 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.867e-05/1.945, allocations: 11.06 kB / 0.6719 GB, free: 16.42 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002928/1.948, allocations: 280.3 kB / 0.6722 GB, free: 16.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00576/1.954, allocations: 1.371 MB / 0.6735 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/1.954, allocations: 149 kB / 0.6737 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/1.955, allocations: 180.3 kB / 0.6739 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01176/1.967, allocations: 2.983 MB / 0.6768 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.161e-05/1.967, allocations: 10.33 kB / 0.6768 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005833/1.968, allocations: 83.48 kB / 0.6769 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003943/1.968, allocations: 164.7 kB / 0.677 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/1.981, allocations: 3.281 MB / 0.6802 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03749/2.018, allocations: 11.47 MB / 0.6914 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007194/2.026, allocations: 1.931 MB / 0.6933 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004067/2.03, allocations: 3.499 MB / 0.6967 GB, free: 7.129 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.97e-05/2.03, allocations: 57.14 kB / 0.6968 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002196/2.032, allocations: 201.5 kB / 0.697 GB, free: 6.984 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 7.444e-06/2.032, allocations: 0 / 0.697 GB, free: 6.984 MB / 0.5105 GB Notification: Performance of matching and sorting (n=150): time 0.01104/2.043, allocations: 2.932 MB / 0.6998 GB, free: 6.605 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/2.043, allocations: 203.1 kB / 0.7 GB, free: 6.387 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/2.047, allocations: 1.504 MB / 0.7015 GB, free: 6.188 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006747/2.047, allocations: 59.23 kB / 0.7015 GB, free: 6.156 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001145/2.048, allocations: 0.9604 MB / 0.7025 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008724/2.049, allocations: 0.5193 MB / 0.703 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/2.05, allocations: 43.47 kB / 0.703 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000277/2.05, allocations: 398.8 kB / 0.7034 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002829/2.053, allocations: 0.8836 MB / 0.7043 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003391/2.056, allocations: 1.6 MB / 0.7058 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/2.06, allocations: 1.284 MB / 0.7071 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.243e-05/2.06, allocations: 7.547 kB / 0.7071 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.009721/2.07, allocations: 2.988 MB / 0.71 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007758/2.071, allocations: 0.8681 MB / 0.7109 GB, free: 18.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-05/2.071, allocations: 21.16 kB / 0.7109 GB, free: 18.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005062/2.076, allocations: 0.6556 MB / 0.7115 GB, free: 18.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004312/2.08, allocations: 0.5058 MB / 0.712 GB, free: 18.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/2.083, allocations: 1.511 MB / 0.7135 GB, free: 17.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/2.087, allocations: 163 kB / 0.7136 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000688/2.088, allocations: 162.3 kB / 0.7138 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/2.088, allocations: 3.938 kB / 0.7138 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009073/2.097, allocations: 2.801 MB / 0.7165 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-05/2.097, allocations: 22.02 kB / 0.7166 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/2.099, allocations: 342.5 kB / 0.7169 GB, free: 17.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004433/2.104, allocations: 0.5451 MB / 0.7174 GB, free: 17.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/2.105, allocations: 1.26 MB / 0.7187 GB, free: 16.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003183/2.108, allocations: 148.5 kB / 0.7188 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004971/2.109, allocations: 159.8 kB / 0.7189 GB, free: 16.2 MB / 0.5261 GB 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.00237/2.111, allocations: 0.6276 MB / 0.7196 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000725/2.112, allocations: 185.3 kB / 0.7197 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/2.123, allocations: 3.28 MB / 0.7229 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.354e-05/2.123, allocations: 7.359 kB / 0.7229 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/2.123, allocations: 4 kB / 0.723 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/2.124, allocations: 298.9 kB / 0.7232 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000681/2.125, allocations: 31.25 kB / 0.7233 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002179/2.127, allocations: 95.17 kB / 0.7234 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003705/2.127, allocations: 121.7 kB / 0.7235 GB, free: 15.31 MB / 0.5261 GB 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.005804/2.133, allocations: 1.376 MB / 0.7248 GB, free: 15.15 MB / 0.5261 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.