Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002654/0.00266, allocations: 368.4 kB / 15.97 MB, free: 6.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.81/3.81, allocations: 388.9 MB / 405.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003512/0.003511, allocations: 223 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5317/0.5317, allocations: 80.04 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004777, allocations: 16 kB / 0.6265 GB, free: 96.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09823, allocations: 54.88 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 1.398/1.496, allocations: 306.3 MB / 0.9793 GB, free: 3.398 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.03289/1.529, allocations: 18.44 MB / 0.9973 GB, free: 1.059 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003012/1.532, allocations: 71.19 kB / 0.9973 GB, free: 1.059 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003786/1.536, allocations: 0.7286 MB / 0.998 GB, free: 0.8164 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.02986/1.566, allocations: 5.628 MB / 1.004 GB, free: 15.32 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04223/1.608, allocations: 7.246 MB / 1.011 GB, free: 11.36 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.01153/1.62, allocations: 6.93 MB / 1.017 GB, free: 5.898 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003814/1.624, allocations: 1.539 MB / 1.019 GB, free: 4.418 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01945/1.643, allocations: 5.712 MB / 1.024 GB, free: 15.38 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006839/1.65, allocations: 2.511 MB / 1.027 GB, free: 13.07 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.0008973/1.651, allocations: 128 kB / 1.027 GB, free: 12.94 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04296/1.694, allocations: 14.63 MB / 1.041 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002403/1.696, allocations: 0.9874 MB / 1.042 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001541/1.698, allocations: 0.4927 MB / 1.043 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.02227/1.72, allocations: 8.027 MB / 1.051 GB, free: 5.668 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/1.72, allocations: 4 kB / 1.051 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.595e-06/1.72, allocations: 0 / 1.051 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001142/1.72, allocations: 0 / 1.051 GB, free: 5.664 MB / 0.5105 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.01668/1.737, allocations: 4.269 MB / 1.055 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/1.737, allocations: 8.031 kB / 1.055 GB, free: 1.324 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/1.739, allocations: 289 kB / 1.055 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004211/1.743, allocations: 1.378 MB / 1.056 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/1.743, allocations: 146.7 kB / 1.057 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006343/1.744, allocations: 186.8 kB / 1.057 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008875/1.753, allocations: 2.984 MB / 1.06 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.648e-05/1.753, allocations: 4 kB / 1.06 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004275/1.754, allocations: 83.2 kB / 1.06 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003534/1.754, allocations: 163.6 kB / 1.06 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/1.764, allocations: 3.274 MB / 1.063 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03354/1.798, allocations: 11.37 MB / 1.074 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006753/1.805, allocations: 1.931 MB / 1.076 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002588/1.807, allocations: 0.8284 MB / 1.077 GB, free: 10 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00851/1.816, allocations: 6.131 MB / 1.083 GB, free: 2.742 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.278e-05/1.816, allocations: 59.88 kB / 1.083 GB, free: 2.672 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00157/1.818, allocations: 202.3 kB / 1.083 GB, free: 2.477 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=150): time 6.001e-06/1.818, allocations: 0 / 1.083 GB, free: 2.477 MB / 0.5417 GB Notification: Performance of matching and sorting (n=150): time 0.01106/1.829, allocations: 2.944 MB / 1.086 GB, free: 15.49 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/1.829, allocations: 201.2 kB / 1.086 GB, free: 15.25 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/1.832, allocations: 1.501 MB / 1.088 GB, free: 13.74 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0004718/1.833, allocations: 61.7 kB / 1.088 GB, free: 13.68 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/1.834, allocations: 0.993 MB / 1.089 GB, free: 12.68 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008595/1.835, allocations: 0.5171 MB / 1.089 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/1.835, allocations: 44 kB / 1.089 GB, free: 12.12 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002543/1.835, allocations: 394.3 kB / 1.09 GB, free: 11.73 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002915/1.838, allocations: 0.8866 MB / 1.09 GB, free: 10.84 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003619/1.842, allocations: 1.597 MB / 1.092 GB, free: 8.918 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003782/1.846, allocations: 1.283 MB / 1.093 GB, free: 7.605 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.309e-05/1.846, allocations: 8 kB / 1.093 GB, free: 7.598 MB / 0.5574 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01002/1.856, allocations: 3.079 MB / 1.096 GB, free: 4.484 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008518/1.856, allocations: 0.8717 MB / 1.097 GB, free: 3.277 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.294e-05/1.857, allocations: 24 kB / 1.097 GB, free: 3.254 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00508/1.862, allocations: 0.6566 MB / 1.098 GB, free: 2.594 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004036/1.866, allocations: 0.5108 MB / 1.098 GB, free: 2.082 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/1.868, allocations: 1.51 MB / 1.1 GB, free: 0.5234 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003456/1.872, allocations: 159.7 kB / 1.1 GB, free: 376 kB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006386/1.872, allocations: 167.5 kB / 1.1 GB, free: 212 kB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.872, allocations: 11.89 kB / 1.1 GB, free: 200 kB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008904/1.881, allocations: 2.794 MB / 1.103 GB, free: 13.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.553e-05/1.881, allocations: 20 kB / 1.103 GB, free: 13.35 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/1.884, allocations: 345.5 kB / 1.103 GB, free: 13.01 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004463/1.888, allocations: 0.5421 MB / 1.104 GB, free: 12.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/1.89, allocations: 1.276 MB / 1.105 GB, free: 11.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/1.893, allocations: 143.9 kB / 1.105 GB, free: 11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005921/1.893, allocations: 164 kB / 1.105 GB, free: 10.84 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * 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 (266): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001817/1.895, allocations: 0.6221 MB / 1.106 GB, free: 10.21 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006273/1.896, allocations: 185.8 kB / 1.106 GB, free: 10.02 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.907, allocations: 3.284 MB / 1.109 GB, free: 6.691 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.253e-05/1.907, allocations: 7.969 kB / 1.109 GB, free: 6.684 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/1.907, allocations: 0 / 1.109 GB, free: 6.684 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008571/1.908, allocations: 294.4 kB / 1.11 GB, free: 6.375 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007259/1.908, allocations: 28 kB / 1.11 GB, free: 6.348 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/1.911, allocations: 99.88 kB / 1.11 GB, free: 6.25 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006884/1.911, allocations: 117.8 kB / 1.11 GB, free: 6.137 MB / 0.573 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.005931/1.917, allocations: 1.372 MB / 1.111 GB, free: 4.793 MB / 0.573 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.