Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004072/0.004077, allocations: 348.4 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.737/3.737, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.005697/0.005697, allocations: 229.1 kB / 397.9 MB, free: 4.984 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5952/0.5952, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006338/0.000634, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08854, allocations: 48.7 MB / 0.6067 GB, free: 4.648 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 1.081/1.17, allocations: 305.7 MB / 0.9053 GB, free: 10.26 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.03795/1.208, allocations: 18.35 MB / 0.9232 GB, free: 7.883 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002851/1.211, allocations: 79.31 kB / 0.9233 GB, free: 7.805 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003804/1.215, allocations: 0.7025 MB / 0.924 GB, free: 7.098 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.1+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.02371/1.238, allocations: 5.602 MB / 0.9295 GB, free: 1.5 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02918/1.268, allocations: 7.224 MB / 0.9365 GB, free: 10.3 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.01131/1.279, allocations: 6.896 MB / 0.9433 GB, free: 3.387 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003893/1.283, allocations: 1.544 MB / 0.9448 GB, free: 1.828 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4458/1.729, allocations: 5.672 MB / 0.9503 GB, free: 7.836 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007538/1.736, allocations: 2.493 MB / 0.9527 GB, free: 7.832 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/1.738, allocations: 133.4 kB / 0.9529 GB, free: 7.828 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04221/1.78, allocations: 14.49 MB / 0.967 GB, free: 7.816 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002854/1.783, allocations: 0.9749 MB / 0.968 GB, free: 7.816 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001967/1.785, allocations: 0.494 MB / 0.9685 GB, free: 7.785 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02223/1.808, allocations: 8.022 MB / 0.9763 GB, free: 7.555 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/1.808, allocations: 3.562 kB / 0.9763 GB, free: 7.555 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.418e-06/1.808, allocations: 0 / 0.9763 GB, free: 7.555 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001369/1.808, allocations: 1.422 kB / 0.9763 GB, free: 7.555 MB / 490.7 MB 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.01683/1.825, allocations: 4.264 MB / 0.9805 GB, free: 5.371 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/1.825, allocations: 12.47 kB / 0.9805 GB, free: 5.367 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00205/1.827, allocations: 272.4 kB / 0.9807 GB, free: 5.246 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004347/1.831, allocations: 1.395 MB / 0.9821 GB, free: 4.859 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/1.831, allocations: 140.2 kB / 0.9822 GB, free: 4.855 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000921/1.832, allocations: 179.7 kB / 0.9824 GB, free: 4.855 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009178/1.842, allocations: 2.995 MB / 0.9853 GB, free: 4.609 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/1.842, allocations: 1.453 kB / 0.9853 GB, free: 4.609 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005702/1.842, allocations: 81.69 kB / 0.9854 GB, free: 4.609 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003278/1.843, allocations: 162.3 kB / 0.9856 GB, free: 4.605 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/1.853, allocations: 3.282 MB / 0.9888 GB, free: 4.199 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03194/1.885, allocations: 11.02 MB / 0.9995 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006529/1.891, allocations: 1.93 MB / 1.001 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002534/1.894, allocations: 0.8251 MB / 1.002 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007844/1.902, allocations: 6.135 MB / 1.008 GB, free: 7.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.451e-05/1.902, allocations: 49 kB / 1.008 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001697/1.904, allocations: 205.3 kB / 1.008 GB, free: 7.098 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=150): time 7.795e-06/1.904, allocations: 2.344 kB / 1.008 GB, free: 7.098 MB / 0.4948 GB Notification: Performance of matching and sorting (n=150): time 0.01088/1.915, allocations: 2.939 MB / 1.011 GB, free: 6.332 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1.915, allocations: 198.2 kB / 1.012 GB, free: 6.113 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/1.918, allocations: 1.504 MB / 1.013 GB, free: 5.551 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006882/1.919, allocations: 60.27 kB / 1.013 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001101/1.92, allocations: 0.9921 MB / 1.014 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009887/1.921, allocations: 0.5179 MB / 1.015 GB, free: 4.379 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/1.921, allocations: 46.25 kB / 1.015 GB, free: 4.367 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002237/1.921, allocations: 393.1 kB / 1.015 GB, free: 4.016 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003045/1.924, allocations: 0.884 MB / 1.016 GB, free: 3.426 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003822/1.928, allocations: 1.599 MB / 1.017 GB, free: 1.867 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003859/1.932, allocations: 1.282 MB / 1.019 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-05/1.932, allocations: 4 kB / 1.019 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01047/1.943, allocations: 3.088 MB / 1.022 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007278/1.943, allocations: 0.8659 MB / 1.022 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.962e-05/1.943, allocations: 20 kB / 1.022 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005193/1.949, allocations: 0.6537 MB / 1.023 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/1.953, allocations: 0.5026 MB / 1.024 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/1.955, allocations: 1.526 MB / 1.025 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/1.959, allocations: 163.6 kB / 1.025 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008197/1.96, allocations: 163.4 kB / 1.025 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.96, allocations: 4 kB / 1.025 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009086/1.969, allocations: 2.794 MB / 1.028 GB, free: 9.141 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-05/1.969, allocations: 24 kB / 1.028 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/1.971, allocations: 349.4 kB / 1.029 GB, free: 8.812 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004688/1.976, allocations: 0.542 MB / 1.029 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/1.978, allocations: 1.271 MB / 1.03 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.981, allocations: 143.9 kB / 1.03 GB, free: 6.977 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007195/1.982, allocations: 160.3 kB / 1.031 GB, free: 6.84 MB / 0.5105 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.002004/1.984, allocations: 0.6272 MB / 1.031 GB, free: 6.414 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005968/1.984, allocations: 196.7 kB / 1.031 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.995, allocations: 3.273 MB / 1.035 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-05/1.995, allocations: 7.969 kB / 1.035 GB, free: 3.961 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/1.995, allocations: 4 kB / 1.035 GB, free: 3.957 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008299/1.996, allocations: 284.8 kB / 1.035 GB, free: 3.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007287/1.997, allocations: 30.81 kB / 1.035 GB, free: 3.676 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002196/1.999, allocations: 97.05 kB / 1.035 GB, free: 3.605 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003509/1.999, allocations: 120.2 kB / 1.035 GB, free: 3.504 MB / 0.5105 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.004955/2.004, allocations: 1.377 MB / 1.036 GB, free: 2.543 MB / 0.5105 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.