Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.392/2.392, allocations: 235 MB / 248.1 MB, free: 14.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.402e-05/3.418e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4065, allocations: 54.85 MB / 364.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.54/11.95, allocations: 3.674 GB / 4.03 GB, free: 56.41 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/11.95, allocations: 80.33 kB / 4.03 GB, free: 56.38 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.29/22.24, allocations: 1.63 GB / 5.66 GB, free: 25.99 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.705e-06/22.24, allocations: 3.938 kB / 5.66 GB, free: 25.99 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003933/22.24, allocations: 86.78 kB / 5.66 GB, free: 25.97 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.04384/22.28, allocations: 8.723 MB / 5.669 GB, free: 21.07 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/22.28, allocations: 10.97 kB / 5.669 GB, free: 21.07 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002252/22.28, allocations: 429 kB / 5.669 GB, free: 21 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003127/22.29, allocations: 398.3 kB / 5.67 GB, free: 20.82 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009131/22.3, allocations: 2.139 MB / 5.672 GB, free: 20.23 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000718/22.3, allocations: 0.4978 MB / 5.672 GB, free: 19.93 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001903/22.3, allocations: 283 kB / 5.672 GB, free: 19.91 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01567/22.31, allocations: 4.821 MB / 5.677 GB, free: 19.11 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/22.31, allocations: 11.06 kB / 5.677 GB, free: 19.1 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00074/22.32, allocations: 128 kB / 5.677 GB, free: 19.09 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005053/22.32, allocations: 260.3 kB / 5.677 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/22.33, allocations: 4.85 MB / 5.682 GB, free: 15.8 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05422/22.39, allocations: 20.58 MB / 5.702 GB, free: 12.91 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008847/22.39, allocations: 2.509 MB / 5.705 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004916/22.4, allocations: 1.483 MB / 5.706 GB, free: 9.102 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004672/22.4, allocations: 3.4 MB / 5.71 GB, free: 5.016 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001023/22.4, allocations: 64.56 kB / 5.71 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=235): time 7.063e-06/22.4, allocations: 0 / 5.71 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of matching and sorting (n=271): time 0.6875/23.09, allocations: 13.97 MB / 5.723 GB, free: 43.31 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/23.09, allocations: 241.2 kB / 5.723 GB, free: 43.06 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00616/23.1, allocations: 1.986 MB / 5.725 GB, free: 42.81 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001179/23.1, allocations: 80.52 kB / 5.725 GB, free: 42.78 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001701/23.1, allocations: 1.394 MB / 5.727 GB, free: 42.16 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.002198/23.1, allocations: 0.96 MB / 5.728 GB, free: 41.68 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007265/23.1, allocations: 84.06 kB / 5.728 GB, free: 41.68 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000411/23.1, allocations: 480.4 kB / 5.728 GB, free: 41.37 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006626/23.11, allocations: 1.757 MB / 5.73 GB, free: 41.36 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007622/23.12, allocations: 3.02 MB / 5.733 GB, free: 39.89 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007355/23.13, allocations: 2.323 MB / 5.735 GB, free: 39.72 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.768e-05/23.13, allocations: 14.23 kB / 5.735 GB, free: 39.72 MB / 0.5886 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.02086/23.15, allocations: 5.503 MB / 5.741 GB, free: 39.37 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.005008/23.15, allocations: 15.52 MB / 5.756 GB, free: 23.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/23.15, allocations: 45 kB / 5.756 GB, free: 23.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00514/23.16, allocations: 0.7299 MB / 5.757 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007878/23.17, allocations: 0.9325 MB / 5.757 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003926/23.17, allocations: 2.465 MB / 5.76 GB, free: 21.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008216/23.18, allocations: 388.1 kB / 5.76 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001767/23.18, allocations: 287.5 kB / 5.76 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/23.18, allocations: 2.594 kB / 5.76 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01889/23.2, allocations: 5.268 MB / 5.766 GB, free: 21.37 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/23.2, allocations: 39.16 kB / 5.766 GB, free: 21.37 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005177/23.2, allocations: 0.7299 MB / 5.766 GB, free: 21.35 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007833/23.21, allocations: 0.9255 MB / 5.767 GB, free: 21.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/23.22, allocations: 2.463 MB / 5.77 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006699/23.22, allocations: 376.8 kB / 5.77 GB, free: 19.78 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001686/23.22, allocations: 276.7 kB / 5.77 GB, free: 19.78 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (487): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002009/23.23, allocations: 373.8 kB / 5.771 GB, free: 19.67 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/23.23, allocations: 291 kB / 5.771 GB, free: 19.52 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01956/23.25, allocations: 5.598 MB / 5.776 GB, free: 19.25 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.197e-05/23.25, allocations: 39.72 kB / 5.776 GB, free: 19.25 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/23.25, allocations: 0 / 5.776 GB, free: 19.25 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.552e-05/23.25, allocations: 15.52 kB / 5.776 GB, free: 19.25 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03635/23.28, allocations: 9.288 MB / 5.786 GB, free: 18.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.565e-05/23.28, allocations: 0 / 5.786 GB, free: 18.71 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005506/23.29, allocations: 0.5729 MB / 5.786 GB, free: 18.71 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006898/23.3, allocations: 0.9067 MB / 5.787 GB, free: 18.67 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001095/23.3, allocations: 125.8 kB / 5.787 GB, free: 18.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/23.3, allocations: 2.347 MB / 5.789 GB, free: 17.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/23.3, allocations: 1.938 kB / 5.789 GB, free: 17.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02878/23.33, allocations: 7.423 MB / 5.797 GB, free: 16.49 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003685/23.33, allocations: 0.8593 MB / 5.797 GB, free: 16.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001238/23.33, allocations: 72.78 kB / 5.798 GB, free: 16.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00524/23.34, allocations: 278.4 kB / 5.798 GB, free: 16.23 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006561/23.34, allocations: 215.6 kB / 5.798 GB, free: 16.22 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006045/23.34, allocations: 183.3 kB / 5.798 GB, free: 16.22 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003293/23.34, allocations: 1.447 MB / 5.8 GB, free: 16.06 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.71e-07/23.34, allocations: 3.344 kB / 5.8 GB, free: 16.06 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02094/23.37, allocations: 4.233 MB / 5.804 GB, free: 16.06 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 285 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04701/23.41, allocations: 13.33 MB / 5.817 GB, free: 14.03 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02127/23.43, allocations: 7.683 MB / 5.824 GB, free: 13.43 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/23.43, allocations: 3.125 kB / 5.824 GB, free: 13.43 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006208/23.44, allocations: 2.167 MB / 5.826 GB, free: 13.41 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01082/23.45, allocations: 1.211 MB / 5.828 GB, free: 13.37 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03185/23.48, allocations: 8.696 MB / 5.836 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003045/23.49, allocations: 2.283 MB / 5.838 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005078/23.49, allocations: 1.51 MB / 5.84 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of SimCode: time 1.303e-06/23.49, allocations: 0 / 5.84 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.529/30.02, allocations: 145.9 MB / 5.982 GB, free: 72.72 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat