Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 108.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 71.89 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3459, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.5905/0.9364, allocations: 318.6 MB / 0.8428 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02154/0.958, allocations: 17.22 MB / 0.8596 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.9603, allocations: 58.97 kB / 0.8597 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.9632, allocations: 1.071 MB / 0.8607 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01527/0.9785, allocations: 6.109 MB / 0.8667 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02085/0.9993, allocations: 8.546 MB / 0.875 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007496/1.007, allocations: 5.852 MB / 0.8807 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003229/1.01, allocations: 1.983 MB / 0.8827 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0133/1.023, allocations: 6.281 MB / 0.8888 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/1.028, allocations: 2.555 MB / 0.8913 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0009753/1.029, allocations: 268 kB / 0.8916 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02732/1.056, allocations: 15.88 MB / 0.9071 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001815/1.058, allocations: 1.126 MB / 0.9082 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002672/1.061, allocations: 1.428 MB / 0.9096 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0257/1.086, allocations: 11.48 MB / 0.9208 GB, free: 0.6836 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.087, allocations: 4 kB / 0.9208 GB, free: 0.6797 MB / 0.6387 GB Notification: Performance of FrontEnd: time 4.528e-06/1.087, allocations: 0 / 0.9208 GB, free: 0.6797 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001018/1.087, allocations: 7.875 kB / 0.9208 GB, free: 0.6719 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.01162/1.098, allocations: 4.533 MB / 0.9252 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/1.098, allocations: 11.97 kB / 0.9252 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/1.1, allocations: 289.1 kB / 0.9255 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/1.102, allocations: 1.423 MB / 0.9269 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/1.103, allocations: 143.5 kB / 0.927 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004052/1.103, allocations: 176 kB / 0.9272 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00516/1.108, allocations: 2.982 MB / 0.9301 GB, free: 6.902 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/1.108, allocations: 3.938 kB / 0.9301 GB, free: 6.898 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/1.108, allocations: 83.95 kB / 0.9302 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002059/1.109, allocations: 167.6 kB / 0.9303 GB, free: 6.652 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005454/1.114, allocations: 3.258 MB / 0.9335 GB, free: 3.391 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/1.133, allocations: 11.34 MB / 0.9446 GB, free: 7.383 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004414/1.137, allocations: 2.335 MB / 0.9469 GB, free: 5.043 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/1.139, allocations: 1.035 MB / 0.9479 GB, free: 4.004 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002713/1.142, allocations: 3.395 MB / 0.9512 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.609e-05/1.142, allocations: 64.09 kB / 0.9513 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001304/1.143, allocations: 265.9 kB / 0.9515 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=155): time 6.522e-06/1.143, allocations: 0 / 0.9515 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of matching and sorting (n=155): time 0.008299/1.152, allocations: 3.72 MB / 0.9551 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/1.152, allocations: 201.2 kB / 0.9553 GB, free: 11.55 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/1.155, allocations: 1.919 MB / 0.9572 GB, free: 9.582 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003042/1.155, allocations: 61.7 kB / 0.9573 GB, free: 9.516 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009058/1.156, allocations: 0.9114 MB / 0.9582 GB, free: 8.59 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000652/1.157, allocations: 0.5314 MB / 0.9587 GB, free: 8.051 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009083/1.158, allocations: 443.2 kB / 0.9591 GB, free: 7.609 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001226/1.158, allocations: 305.1 kB / 0.9594 GB, free: 7.309 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002074/1.16, allocations: 1.109 MB / 0.9605 GB, free: 6.195 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002565/1.162, allocations: 1.513 MB / 0.962 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004373/1.167, allocations: 2.727 MB / 0.9646 GB, free: 1.629 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/1.167, allocations: 4 kB / 0.9646 GB, free: 1.625 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006696/1.174, allocations: 3.398 MB / 0.9679 GB, free: 14.18 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.174, allocations: 148.5 kB / 0.9681 GB, free: 14 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/1.174, allocations: 8 kB / 0.9681 GB, free: 14 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004819/1.179, allocations: 0.8751 MB / 0.9689 GB, free: 13.12 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/1.181, allocations: 443.3 kB / 0.9694 GB, free: 12.68 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/1.184, allocations: 1.799 MB / 0.9711 GB, free: 10.83 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/1.187, allocations: 79.95 kB / 0.9712 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005566/1.187, allocations: 123.9 kB / 0.9713 GB, free: 10.63 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003064/1.19, allocations: 1.48 MB / 0.9728 GB, free: 9.148 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002511/1.193, allocations: 1.482 MB / 0.9742 GB, free: 7.508 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004368/1.197, allocations: 2.664 MB / 0.9768 GB, free: 4.664 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.188e-05/1.197, allocations: 4 kB / 0.9768 GB, free: 4.66 MB / 0.7012 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.006089/1.203, allocations: 3.215 MB / 0.98 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 9.852e-05/1.203, allocations: 150.9 kB / 0.9801 GB, free: 1.223 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/1.203, allocations: 11.98 kB / 0.9801 GB, free: 1.211 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/1.205, allocations: 373.3 kB / 0.9805 GB, free: 0.8398 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/1.208, allocations: 491.3 kB / 0.9809 GB, free: 368 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/1.209, allocations: 1.413 MB / 0.9823 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/1.211, allocations: 92.06 kB / 0.9824 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/1.211, allocations: 119.9 kB / 0.9825 GB, free: 14.69 MB / 0.7169 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.000739/1.212, allocations: 303.7 kB / 0.9828 GB, free: 14.38 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007262/1.213, allocations: 221.3 kB / 0.983 GB, free: 14.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007002/1.22, allocations: 3.93 MB / 0.9869 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/1.22, allocations: 7.969 kB / 0.9869 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/1.22, allocations: 3.984 kB / 0.9869 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/1.221, allocations: 294.3 kB / 0.9871 GB, free: 9.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/1.221, allocations: 39.92 kB / 0.9872 GB, free: 9.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/1.223, allocations: 75.94 kB / 0.9873 GB, free: 9.754 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/1.223, allocations: 117.8 kB / 0.9874 GB, free: 9.641 MB / 0.7169 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.003805/1.227, allocations: 1.602 MB / 0.9889 GB, free: 8.031 MB / 0.7169 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sources.TestSources could not be translated