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.001405/0.001405, allocations: 113.9 kB / 18.46 MB, free: 4.617 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.001454/0.001454, allocations: 190 kB / 19.39 MB, free: 3.688 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.354/1.354, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1964/0.1964, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3632, allocations: 60.82 MB / 0.5196 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.607/0.9702, allocations: 313.2 MB / 0.8255 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02045/0.9907, allocations: 17.24 MB / 0.8423 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002177/0.9929, allocations: 52.44 kB / 0.8423 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002691/0.9956, allocations: 1.086 MB / 0.8434 GB, free: 9 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01513/1.011, allocations: 6.14 MB / 0.8494 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02125/1.032, allocations: 8.535 MB / 0.8577 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008093/1.04, allocations: 5.882 MB / 0.8635 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003484/1.044, allocations: 1.994 MB / 0.8654 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01493/1.059, allocations: 6.212 MB / 0.8715 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005007/1.064, allocations: 2.557 MB / 0.874 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001024/1.065, allocations: 268 kB / 0.8742 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02893/1.094, allocations: 15.73 MB / 0.8896 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002224/1.096, allocations: 1.134 MB / 0.8907 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002686/1.099, allocations: 1.437 MB / 0.8921 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02848/1.127, allocations: 11.41 MB / 0.9033 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/1.127, allocations: 0 / 0.9033 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.954e-06/1.127, allocations: 0 / 0.9033 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.807e-05/1.127, allocations: 0 / 0.9033 GB, free: 2.312 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.01204/1.139, allocations: 4.664 MB / 0.9078 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/1.139, allocations: 8.031 kB / 0.9078 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/1.141, allocations: 290.4 kB / 0.9081 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/1.143, allocations: 1.432 MB / 0.9095 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/1.143, allocations: 148.8 kB / 0.9096 GB, free: 11.7 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/1.144, allocations: 179.9 kB / 0.9098 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00501/1.149, allocations: 2.978 MB / 0.9127 GB, free: 8.5 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/1.149, allocations: 0 / 0.9127 GB, free: 8.5 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/1.149, allocations: 82.55 kB / 0.9128 GB, free: 8.43 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002119/1.149, allocations: 163.6 kB / 0.9129 GB, free: 8.27 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005622/1.155, allocations: 3.258 MB / 0.9161 GB, free: 5.008 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/1.177, allocations: 11.35 MB / 0.9272 GB, free: 9.09 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/1.182, allocations: 2.329 MB / 0.9295 GB, free: 6.758 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/1.184, allocations: 1.027 MB / 0.9305 GB, free: 5.723 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003566/1.188, allocations: 3.405 MB / 0.9338 GB, free: 1.613 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.71e-05/1.188, allocations: 56.16 kB / 0.9339 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001756/1.189, allocations: 272 kB / 0.9341 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=155): time 1.212e-05/1.189, allocations: 0 / 0.9341 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of matching and sorting (n=155): time 0.01032/1.2, allocations: 3.749 MB / 0.9378 GB, free: 13.49 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/1.2, allocations: 193.2 kB / 0.938 GB, free: 13.26 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003512/1.203, allocations: 1.923 MB / 0.9399 GB, free: 11.29 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0004216/1.204, allocations: 57.7 kB / 0.9399 GB, free: 11.23 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009925/1.205, allocations: 0.9259 MB / 0.9408 GB, free: 10.3 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006523/1.206, allocations: 0.5566 MB / 0.9414 GB, free: 9.746 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001179/1.207, allocations: 443.3 kB / 0.9418 GB, free: 9.305 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.207, allocations: 317 kB / 0.9421 GB, free: 8.992 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002174/1.209, allocations: 1.109 MB / 0.9432 GB, free: 7.879 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/1.212, allocations: 1.51 MB / 0.9446 GB, free: 6.215 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005075/1.217, allocations: 2.731 MB / 0.9473 GB, free: 3.312 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.665e-05/1.217, allocations: 4 kB / 0.9473 GB, free: 3.309 MB / 0.67 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.007677/1.225, allocations: 3.413 MB / 0.9506 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001501/1.225, allocations: 148.5 kB / 0.9508 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.402e-05/1.225, allocations: 8 kB / 0.9508 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004801/1.23, allocations: 0.876 MB / 0.9516 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/1.232, allocations: 435.3 kB / 0.9521 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/1.234, allocations: 1.792 MB / 0.9538 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/1.237, allocations: 84.08 kB / 0.9539 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005374/1.237, allocations: 126.9 kB / 0.954 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00322/1.24, allocations: 1.48 MB / 0.9555 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002644/1.243, allocations: 1.486 MB / 0.9569 GB, free: 9.195 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004862/1.248, allocations: 2.656 MB / 0.9595 GB, free: 6.355 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.715e-05/1.248, allocations: 3.938 kB / 0.9595 GB, free: 6.352 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.007137/1.255, allocations: 3.231 MB / 0.9627 GB, free: 3.074 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.000137/1.255, allocations: 152.4 kB / 0.9628 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/1.255, allocations: 12 kB / 0.9628 GB, free: 2.883 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/1.257, allocations: 375.1 kB / 0.9632 GB, free: 2.516 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002467/1.26, allocations: 483.4 kB / 0.9636 GB, free: 2.043 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/1.261, allocations: 1.421 MB / 0.965 GB, free: 0.5703 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/1.264, allocations: 87.94 kB / 0.9651 GB, free: 496 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00055/1.264, allocations: 119.9 kB / 0.9652 GB, free: 376 kB / 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.001026/1.265, allocations: 307.8 kB / 0.9655 GB, free: 60 kB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009976/1.266, allocations: 226.6 kB / 0.9657 GB, free: 15.83 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00819/1.274, allocations: 3.93 MB / 0.9696 GB, free: 11.86 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.201e-05/1.275, allocations: 7.969 kB / 0.9696 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/1.275, allocations: 0 / 0.9696 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000731/1.275, allocations: 315.5 kB / 0.9699 GB, free: 11.52 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000603/1.276, allocations: 32 kB / 0.9699 GB, free: 11.49 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/1.278, allocations: 79.92 kB / 0.97 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/1.278, allocations: 113.8 kB / 0.9701 GB, free: 11.3 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.004366/1.282, allocations: 1.604 MB / 0.9717 GB, free: 9.73 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