Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(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.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources") 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.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 109.6 kB / 17.09 MB, free: 5.98 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.00126/0.00126, allocations: 198.9 kB / 18.03 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2105/0.2105, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 63.91 kB / 442.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1111, allocations: 57.77 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.9331/1.044, allocations: 334.3 MB / 0.8151 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02195/1.066, allocations: 19.69 MB / 0.8343 GB, free: 0.6875 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002043/1.068, allocations: 54.25 kB / 0.8343 GB, free: 0.6875 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002568/1.071, allocations: 1.097 MB / 0.8354 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01606/1.087, allocations: 6.936 MB / 0.8422 GB, free: 360 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02299/1.11, allocations: 9.603 MB / 0.8516 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007523/1.118, allocations: 5.855 MB / 0.8573 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00342/1.121, allocations: 1.991 MB / 0.8592 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01715/1.138, allocations: 6.872 MB / 0.8659 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004909/1.143, allocations: 2.56 MB / 0.8684 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0008996/1.144, allocations: 267.9 kB / 0.8687 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03489/1.179, allocations: 17.53 MB / 0.8858 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002537/1.181, allocations: 1.126 MB / 0.8869 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003484/1.185, allocations: 1.429 MB / 0.8883 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02957/1.215, allocations: 12.36 MB / 0.9004 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.215, allocations: 0 / 0.9004 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.224e-06/1.215, allocations: 0 / 0.9004 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.256e-05/1.215, allocations: 0 / 0.9004 GB, free: 15.22 MB / 0.6387 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.01237/1.227, allocations: 4.944 MB / 0.9052 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/1.227, allocations: 11.89 kB / 0.9052 GB, free: 10.21 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/1.228, allocations: 290.4 kB / 0.9055 GB, free: 9.922 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/1.231, allocations: 1.442 MB / 0.9069 GB, free: 8.5 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/1.231, allocations: 150.2 kB / 0.907 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003284/1.232, allocations: 182.2 kB / 0.9072 GB, free: 8.191 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00546/1.237, allocations: 3.011 MB / 0.9102 GB, free: 5.145 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/1.237, allocations: 0 / 0.9102 GB, free: 5.145 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/1.237, allocations: 81.38 kB / 0.9102 GB, free: 5.074 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001968/1.238, allocations: 159.6 kB / 0.9104 GB, free: 4.918 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006038/1.244, allocations: 3.294 MB / 0.9136 GB, free: 1.633 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02009/1.264, allocations: 11.35 MB / 0.9247 GB, free: 5.812 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004402/1.268, allocations: 2.369 MB / 0.927 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/1.27, allocations: 1.047 MB / 0.928 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004671/1.275, allocations: 4.69 MB / 0.9326 GB, free: 12.8 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.223e-05/1.275, allocations: 64.16 kB / 0.9327 GB, free: 12.73 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001345/1.276, allocations: 276 kB / 0.9329 GB, free: 12.47 MB / 0.67 GB Notification: Performance of pre-optimization done (n=156): time 4.599e-06/1.276, allocations: 0 / 0.9329 GB, free: 12.47 MB / 0.67 GB Notification: Performance of matching and sorting (n=156): time 0.008458/1.285, allocations: 3.845 MB / 0.9367 GB, free: 8.578 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/1.285, allocations: 197.2 kB / 0.9369 GB, free: 8.344 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002605/1.287, allocations: 1.919 MB / 0.9387 GB, free: 6.383 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002589/1.288, allocations: 65.7 kB / 0.9388 GB, free: 6.312 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007266/1.288, allocations: 0.9191 MB / 0.9397 GB, free: 5.387 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004813/1.289, allocations: 0.5605 MB / 0.9402 GB, free: 4.836 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007616/1.29, allocations: 463.3 kB / 0.9407 GB, free: 4.375 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000115/1.29, allocations: 305.1 kB / 0.941 GB, free: 4.074 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/1.292, allocations: 1.113 MB / 0.9421 GB, free: 2.957 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/1.294, allocations: 1.521 MB / 0.9436 GB, free: 1.285 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004386/1.299, allocations: 2.751 MB / 0.9462 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/1.299, allocations: 64 / 0.9462 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006271/1.305, allocations: 3.443 MB / 0.9496 GB, free: 10.99 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.694e-05/1.305, allocations: 148.5 kB / 0.9497 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/1.305, allocations: 11.94 kB / 0.9498 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004848/1.31, allocations: 0.9272 MB / 0.9507 GB, free: 9.875 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/1.312, allocations: 449.7 kB / 0.9511 GB, free: 9.461 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/1.314, allocations: 1.82 MB / 0.9529 GB, free: 7.598 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001968/1.316, allocations: 79.95 kB / 0.9529 GB, free: 7.52 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000403/1.316, allocations: 155.9 kB / 0.9531 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002779/1.319, allocations: 1.48 MB / 0.9545 GB, free: 5.883 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002425/1.322, allocations: 1.487 MB / 0.956 GB, free: 4.238 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004361/1.326, allocations: 2.682 MB / 0.9586 GB, free: 1.414 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.378e-05/1.326, allocations: 4 kB / 0.9586 GB, free: 1.41 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.006354/1.332, allocations: 3.266 MB / 0.9618 GB, free: 14.17 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 9.164e-05/1.332, allocations: 148.5 kB / 0.9619 GB, free: 14 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/1.333, allocations: 12 kB / 0.962 GB, free: 13.98 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001918/1.334, allocations: 438.9 kB / 0.9624 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/1.337, allocations: 498.3 kB / 0.9628 GB, free: 13.1 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/1.338, allocations: 1.427 MB / 0.9642 GB, free: 11.63 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/1.34, allocations: 92.06 kB / 0.9643 GB, free: 11.54 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000365/1.34, allocations: 143.9 kB / 0.9645 GB, free: 11.4 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (233): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,12), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007244/1.341, allocations: 305.6 kB / 0.9648 GB, free: 11.12 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007254/1.342, allocations: 226.6 kB / 0.965 GB, free: 10.89 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007442/1.349, allocations: 3.84 MB / 0.9687 GB, free: 7.016 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/1.349, allocations: 7.969 kB / 0.9687 GB, free: 7.008 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/1.349, allocations: 0 / 0.9687 GB, free: 7.008 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005968/1.35, allocations: 307.5 kB / 0.969 GB, free: 6.688 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004644/1.351, allocations: 39.88 kB / 0.9691 GB, free: 6.648 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/1.352, allocations: 83.92 kB / 0.9691 GB, free: 6.566 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002893/1.352, allocations: 121.8 kB / 0.9693 GB, free: 6.449 MB / 0.7012 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.004075/1.357, allocations: 1.673 MB / 0.9709 GB, free: 4.809 MB / 0.7012 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sources.TestSources could not be translated