Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(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_4.0.0_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_4.0.0_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.001185/0.001185, allocations: 110.6 kB / 18.46 MB, free: 4.598 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.001287/0.001287, allocations: 187.1 kB / 19.38 MB, free: 3.68 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.358/1.358, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2065/0.2065, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 55.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3578, allocations: 60.83 MB / 0.5196 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.6062/0.9641, allocations: 313.2 MB / 0.8255 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02026/0.9844, allocations: 17.24 MB / 0.8423 GB, free: 9.727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.9864, allocations: 52.44 kB / 0.8423 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00284/0.9892, allocations: 1.085 MB / 0.8434 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01516/1.004, allocations: 6.139 MB / 0.8494 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02039/1.025, allocations: 8.536 MB / 0.8577 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00705/1.032, allocations: 5.877 MB / 0.8635 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003015/1.035, allocations: 1.993 MB / 0.8654 GB, free: 6.875 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01397/1.049, allocations: 6.2 MB / 0.8715 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004574/1.054, allocations: 2.57 MB / 0.874 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001109/1.055, allocations: 268 kB / 0.8742 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02805/1.083, allocations: 15.72 MB / 0.8896 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001883/1.085, allocations: 1.135 MB / 0.8907 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002757/1.087, allocations: 1.423 MB / 0.8921 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02517/1.113, allocations: 11.39 MB / 0.9032 GB, free: 2.363 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.113, allocations: 4 kB / 0.9032 GB, free: 2.359 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.833e-06/1.113, allocations: 0 / 0.9032 GB, free: 2.359 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001129/1.113, allocations: 0 / 0.9032 GB, free: 2.359 MB / 0.6231 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.01162/1.124, allocations: 4.496 MB / 0.9076 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/1.124, allocations: 8.031 kB / 0.9076 GB, free: 13.8 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/1.126, allocations: 285.1 kB / 0.9079 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/1.128, allocations: 1.43 MB / 0.9093 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/1.128, allocations: 137.9 kB / 0.9094 GB, free: 11.94 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/1.129, allocations: 180.3 kB / 0.9096 GB, free: 11.77 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004937/1.134, allocations: 2.98 MB / 0.9125 GB, free: 8.742 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/1.134, allocations: 0 / 0.9125 GB, free: 8.742 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/1.134, allocations: 79.89 kB / 0.9126 GB, free: 8.672 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/1.134, allocations: 167.6 kB / 0.9127 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005252/1.139, allocations: 3.258 MB / 0.9159 GB, free: 5.246 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01872/1.158, allocations: 11.33 MB / 0.927 GB, free: 9.355 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004405/1.163, allocations: 2.334 MB / 0.9293 GB, free: 7.016 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/1.164, allocations: 1.031 MB / 0.9303 GB, free: 5.977 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002905/1.167, allocations: 3.4 MB / 0.9336 GB, free: 1.875 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/1.167, allocations: 56.16 kB / 0.9336 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001189/1.169, allocations: 264.2 kB / 0.9339 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=155): time 6.853e-06/1.169, allocations: 0 / 0.9339 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of matching and sorting (n=155): time 0.008252/1.177, allocations: 3.735 MB / 0.9375 GB, free: 13.77 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.885e-05/1.177, allocations: 197.2 kB / 0.9377 GB, free: 13.54 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003005/1.18, allocations: 1.911 MB / 0.9396 GB, free: 11.58 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002645/1.18, allocations: 61.7 kB / 0.9397 GB, free: 11.51 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007701/1.181, allocations: 0.9086 MB / 0.9405 GB, free: 10.59 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006609/1.182, allocations: 0.5322 MB / 0.9411 GB, free: 10.07 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009556/1.183, allocations: 449.2 kB / 0.9415 GB, free: 9.621 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.183, allocations: 301.1 kB / 0.9418 GB, free: 9.324 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/1.185, allocations: 1.106 MB / 0.9429 GB, free: 8.215 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002599/1.188, allocations: 1.517 MB / 0.9443 GB, free: 6.543 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004555/1.192, allocations: 2.73 MB / 0.947 GB, free: 3.641 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/1.192, allocations: 0 / 0.947 GB, free: 3.641 MB / 0.67 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.00677/1.199, allocations: 3.402 MB / 0.9503 GB, free: 196 kB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/1.199, allocations: 148.5 kB / 0.9505 GB, free: 16 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/1.199, allocations: 12 kB / 0.9505 GB, free: 4 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004876/1.204, allocations: 0.8654 MB / 0.9513 GB, free: 15.14 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/1.206, allocations: 439.3 kB / 0.9517 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/1.208, allocations: 1.802 MB / 0.9535 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/1.21, allocations: 91.84 kB / 0.9536 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/1.211, allocations: 119.9 kB / 0.9537 GB, free: 12.65 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002756/1.213, allocations: 1.48 MB / 0.9551 GB, free: 11.17 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00236/1.216, allocations: 1.486 MB / 0.9566 GB, free: 9.523 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004445/1.22, allocations: 2.656 MB / 0.9592 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.25e-05/1.22, allocations: 4 kB / 0.9592 GB, free: 6.68 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.006032/1.226, allocations: 3.221 MB / 0.9623 GB, free: 3.414 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/1.227, allocations: 152.4 kB / 0.9625 GB, free: 3.234 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/1.227, allocations: 12 kB / 0.9625 GB, free: 3.223 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/1.228, allocations: 383.4 kB / 0.9629 GB, free: 2.844 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/1.231, allocations: 487.2 kB / 0.9633 GB, free: 2.367 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/1.232, allocations: 1.404 MB / 0.9647 GB, free: 0.9141 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/1.234, allocations: 96.06 kB / 0.9648 GB, free: 0.8203 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003175/1.235, allocations: 123.9 kB / 0.9649 GB, free: 0.6992 MB / 0.6856 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.0006566/1.235, allocations: 291.8 kB / 0.9652 GB, free: 416 kB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006746/1.236, allocations: 225.3 kB / 0.9654 GB, free: 188 kB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007003/1.243, allocations: 3.93 MB / 0.9692 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/1.243, allocations: 11.91 kB / 0.9693 GB, free: 12.19 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/1.243, allocations: 0 / 0.9693 GB, free: 12.19 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006038/1.244, allocations: 294.5 kB / 0.9695 GB, free: 11.88 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000438/1.244, allocations: 35.84 kB / 0.9696 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/1.246, allocations: 79.92 kB / 0.9696 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/1.246, allocations: 113.8 kB / 0.9698 GB, free: 11.66 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.00373/1.25, allocations: 1.612 MB / 0.9713 GB, free: 10.08 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