Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadModel(ModelicaTest): time 2.195/2.195, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004847/0.0004849, allocations: 12 kB / 314.3 MB, free: 9.586 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2791, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.6525/0.9317, allocations: 242.7 MB / 0.5975 GB, free: 3.91 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.04163/0.9734, allocations: 23.52 MB / 0.6205 GB, free: 12.35 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002542/0.976, allocations: 67.44 kB / 0.6206 GB, free: 12.28 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002888/0.9789, allocations: 0.8241 MB / 0.6214 GB, free: 11.45 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01841/0.9973, allocations: 5.216 MB / 0.6265 GB, free: 6.223 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02221/1.02, allocations: 6.535 MB / 0.6328 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.006755/1.026, allocations: 3.452 MB / 0.6362 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003372/1.03, allocations: 1.579 MB / 0.6377 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01414/1.044, allocations: 4.801 MB / 0.6424 GB, free: 5.793 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004401/1.048, allocations: 1.839 MB / 0.6442 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0007441/1.049, allocations: 128 kB / 0.6444 GB, free: 3.824 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03415/1.083, allocations: 14.51 MB / 0.6585 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001798/1.085, allocations: 0.9079 MB / 0.6594 GB, free: 4.383 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001062/1.086, allocations: 0.4927 MB / 0.6599 GB, free: 3.883 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.4759/1.562, allocations: 7.552 MB / 0.6673 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.207e-06/1.562, allocations: 0.9062 kB / 0.6673 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.311e-06/1.562, allocations: 0 / 0.6673 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.674e-05/1.562, allocations: 0 / 0.6673 GB, free: 18.85 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.01216/1.574, allocations: 4.129 MB / 0.6713 GB, free: 16.74 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/1.575, allocations: 9.344 kB / 0.6713 GB, free: 16.74 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/1.576, allocations: 283.3 kB / 0.6716 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003575/1.58, allocations: 1.371 MB / 0.6729 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/1.58, allocations: 143 kB / 0.6731 GB, free: 16.23 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005379/1.581, allocations: 186.8 kB / 0.6732 GB, free: 16.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007152/1.588, allocations: 2.984 MB / 0.6762 GB, free: 16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.695e-05/1.588, allocations: 4.406 kB / 0.6762 GB, free: 16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003566/1.588, allocations: 79.92 kB / 0.6762 GB, free: 16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002615/1.588, allocations: 165.8 kB / 0.6764 GB, free: 16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008171/1.597, allocations: 3.284 MB / 0.6796 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02492/1.622, allocations: 11.47 MB / 0.6908 GB, free: 11.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004972/1.627, allocations: 1.932 MB / 0.6927 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002862/1.63, allocations: 3.494 MB / 0.6961 GB, free: 7.449 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.083e-05/1.63, allocations: 56.64 kB / 0.6962 GB, free: 7.41 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001417/1.631, allocations: 195.3 kB / 0.6963 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 6.377e-06/1.631, allocations: 0 / 0.6963 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of matching and sorting (n=150): time 0.00809/1.639, allocations: 2.947 MB / 0.6992 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/1.639, allocations: 197.7 kB / 0.6994 GB, free: 6.707 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/1.642, allocations: 1.505 MB / 0.7009 GB, free: 6.508 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000402/1.642, allocations: 59.89 kB / 0.7009 GB, free: 6.477 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005839/1.643, allocations: 0.9609 MB / 0.7019 GB, free: 5.938 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005018/1.643, allocations: 0.5142 MB / 0.7024 GB, free: 5.609 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002028/1.644, allocations: 47.88 kB / 0.7024 GB, free: 5.609 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003967/1.644, allocations: 399.7 kB / 0.7028 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002143/1.646, allocations: 0.8838 MB / 0.7037 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002636/1.649, allocations: 1.6 MB / 0.7052 GB, free: 20.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002995/1.652, allocations: 1.285 MB / 0.7065 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.162e-05/1.652, allocations: 4.812 kB / 0.7065 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.007575/1.659, allocations: 2.986 MB / 0.7094 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005307/1.66, allocations: 0.8676 MB / 0.7102 GB, free: 18.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/1.66, allocations: 21.88 kB / 0.7103 GB, free: 18.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004222/1.664, allocations: 0.6603 MB / 0.7109 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/1.667, allocations: 0.5012 MB / 0.7114 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/1.669, allocations: 1.514 MB / 0.7129 GB, free: 17.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/1.672, allocations: 160.4 kB / 0.713 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006049/1.673, allocations: 163.7 kB / 0.7132 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/1.673, allocations: 8.297 kB / 0.7132 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007064/1.68, allocations: 2.791 MB / 0.7159 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-05/1.68, allocations: 21.34 kB / 0.7159 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/1.682, allocations: 352.3 kB / 0.7163 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/1.685, allocations: 0.5378 MB / 0.7168 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/1.686, allocations: 1.271 MB / 0.718 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/1.688, allocations: 142.9 kB / 0.7182 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007639/1.689, allocations: 163 kB / 0.7183 GB, free: 16.52 MB / 0.5261 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.002057/1.691, allocations: 0.6271 MB / 0.719 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005977/1.692, allocations: 191.1 kB / 0.7191 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009145/1.701, allocations: 3.273 MB / 0.7223 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/1.701, allocations: 20.62 kB / 0.7223 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/1.701, allocations: 3.953 kB / 0.7224 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.143e-05/1.701, allocations: 6.562 kB / 0.7224 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/1.713, allocations: 4.74 MB / 0.727 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/1.713, allocations: 10.06 kB / 0.727 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/1.715, allocations: 303.3 kB / 0.7273 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00376/1.718, allocations: 0.5953 MB / 0.7279 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003837/1.719, allocations: 65.55 kB / 0.7279 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/1.721, allocations: 1.521 MB / 0.7294 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.78e-06/1.721, allocations: 9.719 kB / 0.7294 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005606/1.726, allocations: 2.365 MB / 0.7317 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009014/1.727, allocations: 297.8 kB / 0.732 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005708/1.728, allocations: 36.84 kB / 0.7321 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/1.729, allocations: 105.3 kB / 0.7322 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/1.73, allocations: 137.3 kB / 0.7323 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002962/1.73, allocations: 115.5 kB / 0.7324 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002034/1.732, allocations: 1.041 MB / 0.7334 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.913e-06/1.732, allocations: 2.156 kB / 0.7334 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009059/1.741, allocations: 2.683 MB / 0.736 GB, free: 12.85 MB / 0.5261 GB 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.007983/1.749, allocations: 2.451 MB / 0.7384 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009646/1.759, allocations: 4.084 MB / 0.7424 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/1.759, allocations: 6.203 kB / 0.7424 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002683/1.762, allocations: 1.007 MB / 0.7434 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005176/1.767, allocations: 0.8551 MB / 0.7442 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/1.777, allocations: 4.716 MB / 0.7488 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/1.779, allocations: 1.651 MB / 0.7505 GB, free: 2.965 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/1.781, allocations: 278.5 kB / 0.7507 GB, free: 2.707 MB / 0.5261 GB Notification: Performance of SimCode: time 1.68e-06/1.781, allocations: 4 kB / 0.7507 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of Templates: time 0.1377/1.919, allocations: 75.56 MB / 0.8245 GB, free: 7.719 MB / 0.6042 GB