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.001152/0.001152, allocations: 106.4 kB / 17.08 MB, free: 5.82 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.001028/0.001028, allocations: 194.2 kB / 18.02 MB, free: 4.965 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.323/1.323, 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.1945/0.1945, allocations: 43.52 MB / 314.8 MB, free: 464 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.001511/0.001511, allocations: 67.91 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09638, allocations: 57.79 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.8108/0.9072, allocations: 334.3 MB / 0.8151 GB, free: 0.793 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0218/0.929, allocations: 19.68 MB / 0.8343 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.9311, allocations: 55.75 kB / 0.8343 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002902/0.934, allocations: 1.067 MB / 0.8354 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01593/0.95, allocations: 6.876 MB / 0.8421 GB, free: 352 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02206/0.9721, allocations: 9.576 MB / 0.8514 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007147/0.9792, allocations: 5.852 MB / 0.8572 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003377/0.9826, allocations: 1.985 MB / 0.8591 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01695/0.9996, allocations: 6.835 MB / 0.8658 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004952/1.005, allocations: 2.555 MB / 0.8683 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001132/1.006, allocations: 269.8 kB / 0.8685 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03216/1.038, allocations: 17.52 MB / 0.8856 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002369/1.04, allocations: 1.128 MB / 0.8867 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003444/1.044, allocations: 1.429 MB / 0.8881 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0295/1.073, allocations: 12.3 MB / 0.9002 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/1.073, allocations: 0 / 0.9002 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.583e-06/1.073, allocations: 0 / 0.9002 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001172/1.073, allocations: 0 / 0.9002 GB, free: 15.46 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.013/1.086, allocations: 4.783 MB / 0.9048 GB, free: 10.63 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/1.087, allocations: 14.98 kB / 0.9048 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/1.088, allocations: 277.1 kB / 0.9051 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/1.091, allocations: 1.434 MB / 0.9065 GB, free: 8.934 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/1.091, allocations: 141.4 kB / 0.9066 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004898/1.091, allocations: 180.5 kB / 0.9068 GB, free: 8.633 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005669/1.097, allocations: 3.01 MB / 0.9098 GB, free: 5.586 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.047e-05/1.097, allocations: 10.56 kB / 0.9098 GB, free: 5.578 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003188/1.097, allocations: 80.28 kB / 0.9098 GB, free: 5.508 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002013/1.098, allocations: 159.6 kB / 0.91 GB, free: 5.352 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005904/1.104, allocations: 3.292 MB / 0.9132 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02147/1.125, allocations: 11.33 MB / 0.9243 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004543/1.13, allocations: 2.368 MB / 0.9266 GB, free: 3.906 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/1.131, allocations: 1.039 MB / 0.9276 GB, free: 2.863 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004357/1.136, allocations: 4.695 MB / 0.9322 GB, free: 13.26 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.376e-05/1.136, allocations: 64.16 kB / 0.9322 GB, free: 13.19 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001499/1.137, allocations: 272.6 kB / 0.9325 GB, free: 12.93 MB / 0.67 GB Notification: Performance of pre-optimization done (n=156): time 1.065e-05/1.137, allocations: 0 / 0.9325 GB, free: 12.93 MB / 0.67 GB Notification: Performance of matching and sorting (n=156): time 0.008687/1.146, allocations: 3.836 MB / 0.9362 GB, free: 9.047 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/1.146, allocations: 197.2 kB / 0.9364 GB, free: 8.812 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/1.149, allocations: 1.907 MB / 0.9383 GB, free: 6.859 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002463/1.149, allocations: 61.7 kB / 0.9384 GB, free: 6.793 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007016/1.15, allocations: 0.9061 MB / 0.9392 GB, free: 5.879 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004765/1.15, allocations: 0.5311 MB / 0.9398 GB, free: 5.352 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007947/1.151, allocations: 462.8 kB / 0.9402 GB, free: 4.895 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/1.151, allocations: 305.1 kB / 0.9405 GB, free: 4.594 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/1.153, allocations: 1.113 MB / 0.9416 GB, free: 3.477 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/1.156, allocations: 1.523 MB / 0.9431 GB, free: 1.805 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004143/1.16, allocations: 2.749 MB / 0.9458 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/1.16, allocations: 4 kB / 0.9458 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.00598/1.166, allocations: 3.428 MB / 0.9491 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.645e-05/1.166, allocations: 152.5 kB / 0.9492 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/1.166, allocations: 11.94 kB / 0.9493 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004897/1.171, allocations: 0.9322 MB / 0.9502 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002044/1.173, allocations: 447.9 kB / 0.9506 GB, free: 9.98 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/1.175, allocations: 1.819 MB / 0.9524 GB, free: 8.121 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/1.177, allocations: 79.95 kB / 0.9524 GB, free: 8.043 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/1.177, allocations: 151.9 kB / 0.9526 GB, free: 7.895 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002476/1.179, allocations: 1.48 MB / 0.954 GB, free: 6.41 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002194/1.182, allocations: 1.492 MB / 0.9555 GB, free: 4.762 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003982/1.186, allocations: 2.676 MB / 0.9581 GB, free: 1.941 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.626e-06/1.186, allocations: 4 kB / 0.9581 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.005749/1.191, allocations: 3.254 MB / 0.9613 GB, free: 14.7 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 9.722e-05/1.191, allocations: 152.5 kB / 0.9614 GB, free: 14.52 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/1.191, allocations: 8 kB / 0.9614 GB, free: 14.52 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/1.193, allocations: 450.2 kB / 0.9619 GB, free: 14.08 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00243/1.196, allocations: 488.1 kB / 0.9623 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/1.197, allocations: 1.43 MB / 0.9637 GB, free: 12.16 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/1.199, allocations: 92.06 kB / 0.9638 GB, free: 12.07 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004273/1.2, allocations: 151.9 kB / 0.964 GB, free: 11.92 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.0008536/1.201, allocations: 306.5 kB / 0.9643 GB, free: 11.64 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008959/1.201, allocations: 213.5 kB / 0.9645 GB, free: 11.43 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007943/1.209, allocations: 3.835 MB / 0.9682 GB, free: 7.551 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.689e-05/1.209, allocations: 7.969 kB / 0.9682 GB, free: 7.543 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.209, allocations: 4 kB / 0.9682 GB, free: 7.539 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006498/1.21, allocations: 298.4 kB / 0.9685 GB, free: 7.227 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005468/1.211, allocations: 35.84 kB / 0.9685 GB, free: 7.191 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/1.212, allocations: 83.92 kB / 0.9686 GB, free: 7.109 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/1.213, allocations: 125.8 kB / 0.9687 GB, free: 6.988 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.003914/1.217, allocations: 1.667 MB / 0.9704 GB, free: 5.348 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