Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadModel(ModelicaTest): time 1.817/1.817, allocations: 209.3 MB / 224.8 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.000439, allocations: 8 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2887, allocations: 48.71 MB / 331.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.6798/0.9686, allocations: 242.3 MB / 0.5601 GB, free: 8.688 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04143/1.01, allocations: 23.38 MB / 0.5829 GB, free: 2.719 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002634/1.013, allocations: 74.84 kB / 0.583 GB, free: 2.684 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/1.015, allocations: 0.8093 MB / 0.5838 GB, free: 2.027 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0187/1.034, allocations: 5.2 MB / 0.5888 GB, free: 13 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02395/1.058, allocations: 6.527 MB / 0.5952 GB, free: 6.453 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.006853/1.065, allocations: 3.452 MB / 0.5986 GB, free: 2.992 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003343/1.068, allocations: 1.572 MB / 0.6001 GB, free: 1.402 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01439/1.083, allocations: 4.778 MB / 0.6048 GB, free: 12.61 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004403/1.087, allocations: 1.835 MB / 0.6066 GB, free: 10.77 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008272/1.088, allocations: 128 kB / 0.6067 GB, free: 10.65 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0352/1.123, allocations: 14.37 MB / 0.6207 GB, free: 12.26 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001869/1.125, allocations: 0.8923 MB / 0.6216 GB, free: 11.36 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001072/1.126, allocations: 0.4927 MB / 0.6221 GB, free: 10.86 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02004/1.146, allocations: 7.559 MB / 0.6295 GB, free: 3.289 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.076e-06/1.146, allocations: 3.938 kB / 0.6295 GB, free: 3.285 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.819e-06/1.146, allocations: 4 kB / 0.6295 GB, free: 3.281 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.532e-05/1.147, allocations: 0 / 0.6295 GB, free: 3.281 MB / 474.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.01284/1.159, allocations: 4.124 MB / 0.6335 GB, free: 15.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.159, allocations: 12.03 kB / 0.6335 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/1.161, allocations: 269.1 kB / 0.6338 GB, free: 14.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/1.165, allocations: 1.381 MB / 0.6351 GB, free: 13.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/1.165, allocations: 147.5 kB / 0.6353 GB, free: 13.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005849/1.166, allocations: 180 kB / 0.6354 GB, free: 13.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007638/1.173, allocations: 2.989 MB / 0.6383 GB, free: 9.973 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.006e-05/1.173, allocations: 0 / 0.6383 GB, free: 9.973 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003738/1.174, allocations: 83.91 kB / 0.6384 GB, free: 9.891 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002905/1.174, allocations: 167.6 kB / 0.6386 GB, free: 9.727 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009054/1.183, allocations: 3.282 MB / 0.6418 GB, free: 6.441 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2563/1.439, allocations: 11.1 MB / 0.6526 GB, free: 203.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005353/1.445, allocations: 1.925 MB / 0.6545 GB, free: 202.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003073/1.448, allocations: 3.494 MB / 0.6579 GB, free: 198.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.468e-05/1.448, allocations: 55.84 kB / 0.658 GB, free: 198.7 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001343/1.449, allocations: 190.5 kB / 0.6582 GB, free: 198.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 8.681e-06/1.45, allocations: 0.7812 kB / 0.6582 GB, free: 198.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=150): time 0.008308/1.458, allocations: 2.938 MB / 0.661 GB, free: 197.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/1.458, allocations: 203 kB / 0.6612 GB, free: 197.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/1.461, allocations: 1.503 MB / 0.6627 GB, free: 196.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003855/1.461, allocations: 60.33 kB / 0.6628 GB, free: 196.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000606/1.462, allocations: 0.9639 MB / 0.6637 GB, free: 195.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/1.462, allocations: 0.5167 MB / 0.6642 GB, free: 195.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/1.462, allocations: 47.88 kB / 0.6642 GB, free: 195.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/1.463, allocations: 401.1 kB / 0.6646 GB, free: 195.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/1.465, allocations: 0.8863 MB / 0.6655 GB, free: 194.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002871/1.468, allocations: 1.598 MB / 0.6671 GB, free: 193.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/1.471, allocations: 1.287 MB / 0.6683 GB, free: 192.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.786e-05/1.471, allocations: 7.781 kB / 0.6683 GB, free: 192.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.008257/1.479, allocations: 2.984 MB / 0.6712 GB, free: 191.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004747/1.48, allocations: 0.8695 MB / 0.6721 GB, free: 190.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/1.48, allocations: 19.75 kB / 0.6721 GB, free: 190.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00474/1.484, allocations: 0.6472 MB / 0.6727 GB, free: 190.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/1.487, allocations: 0.5082 MB / 0.6732 GB, free: 190.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/1.489, allocations: 1.515 MB / 0.6747 GB, free: 188.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002903/1.492, allocations: 160.9 kB / 0.6749 GB, free: 188.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005316/1.493, allocations: 162.2 kB / 0.675 GB, free: 188.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/1.493, allocations: 3.969 kB / 0.675 GB, free: 188.8 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006948/1.5, allocations: 2.789 MB / 0.6777 GB, free: 187.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.934e-05/1.5, allocations: 19.81 kB / 0.6778 GB, free: 187.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/1.502, allocations: 348.3 kB / 0.6781 GB, free: 187.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003242/1.505, allocations: 0.5423 MB / 0.6786 GB, free: 187.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/1.506, allocations: 1.268 MB / 0.6799 GB, free: 185.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/1.508, allocations: 146.5 kB / 0.68 GB, free: 185.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006156/1.509, allocations: 160.2 kB / 0.6802 GB, free: 185.8 MB / 490.7 MB 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.001662/1.511, allocations: 0.6363 MB / 0.6808 GB, free: 185.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/1.511, allocations: 193.4 kB / 0.681 GB, free: 185.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008764/1.52, allocations: 3.266 MB / 0.6841 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.65e-05/1.52, allocations: 26.5 kB / 0.6842 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.52, allocations: 0 / 0.6842 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.07e-05/1.52, allocations: 15.16 kB / 0.6842 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/1.531, allocations: 4.745 MB / 0.6888 GB, free: 180.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/1.531, allocations: 4.812 kB / 0.6888 GB, free: 180.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/1.533, allocations: 307.5 kB / 0.6891 GB, free: 180.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004347/1.537, allocations: 0.5927 MB / 0.6897 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003825/1.538, allocations: 61.78 kB / 0.6898 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/1.539, allocations: 1.519 MB / 0.6912 GB, free: 178.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.636e-06/1.539, allocations: 11.52 kB / 0.6913 GB, free: 178.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005533/1.545, allocations: 2.363 MB / 0.6936 GB, free: 177.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007721/1.546, allocations: 293.3 kB / 0.6938 GB, free: 177.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000646/1.546, allocations: 38.86 kB / 0.6939 GB, free: 177.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/1.548, allocations: 99.38 kB / 0.694 GB, free: 177.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/1.549, allocations: 133.4 kB / 0.6941 GB, free: 177 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/1.549, allocations: 110.7 kB / 0.6942 GB, free: 177 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001708/1.551, allocations: 1.046 MB / 0.6952 GB, free: 176.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.551, allocations: 3.938 kB / 0.6952 GB, free: 176.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007793/1.558, allocations: 2.683 MB / 0.6978 GB, free: 174.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.007227/1.566, allocations: 2.455 MB / 0.7002 GB, free: 172.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00886/1.575, allocations: 4.093 MB / 0.7042 GB, free: 168.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/1.575, allocations: 8.5 kB / 0.7043 GB, free: 168.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/1.577, allocations: 0.9941 MB / 0.7052 GB, free: 167.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004849/1.582, allocations: 0.8509 MB / 0.7061 GB, free: 166.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007912/1.59, allocations: 4.724 MB / 0.7107 GB, free: 161.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/1.591, allocations: 1.646 MB / 0.7123 GB, free: 160.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.593, allocations: 275.3 kB / 0.7125 GB, free: 159.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.035e-06/1.593, allocations: 0 / 0.7125 GB, free: 159.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1044/1.697, allocations: 75.53 MB / 0.7863 GB, free: 84.17 MB / 490.7 MB