Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.847/1.847, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004599, allocations: 12 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4114, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.68/11.09, allocations: 3.667 GB / 3.991 GB, free: 78.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/11.09, allocations: 88.31 kB / 3.991 GB, free: 78.32 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.954/21.04, allocations: 1.621 GB / 5.612 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.815e-06/21.04, allocations: 1.969 kB / 5.612 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003912/21.04, allocations: 83.94 kB / 5.612 GB, free: 24.04 MB / 0.5261 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.04367/21.09, allocations: 9.059 MB / 5.621 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/21.09, allocations: 7.75 kB / 5.621 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002745/21.09, allocations: 426.4 kB / 5.622 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003407/21.09, allocations: 397.5 kB / 5.622 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009396/21.1, allocations: 2.143 MB / 5.624 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008991/21.1, allocations: 0.4975 MB / 5.625 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002279/21.11, allocations: 287.5 kB / 5.625 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/21.12, allocations: 4.915 MB / 5.63 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000139/21.12, allocations: 15.56 kB / 5.63 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/21.13, allocations: 124.9 kB / 5.63 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000525/21.13, allocations: 263.2 kB / 5.63 GB, free: 17.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01655/21.14, allocations: 5.009 MB / 5.635 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05074/21.19, allocations: 19.94 MB / 5.654 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008034/21.2, allocations: 2.584 MB / 5.657 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00369/21.21, allocations: 3.4 MB / 5.66 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.166e-05/21.21, allocations: 65.94 kB / 5.66 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=235): time 6.312e-06/21.21, allocations: 0 / 5.66 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of matching and sorting (n=271): time 0.1144/21.32, allocations: 16.41 MB / 5.676 GB, free: 3.359 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/21.32, allocations: 233.6 kB / 5.677 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004712/21.32, allocations: 2.008 MB / 5.679 GB, free: 2.848 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001157/21.33, allocations: 81.27 kB / 5.679 GB, free: 2.816 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001464/21.33, allocations: 1.393 MB / 5.68 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001953/21.33, allocations: 0.956 MB / 5.681 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000694/21.33, allocations: 90.22 kB / 5.681 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004566/21.33, allocations: 472.9 kB / 5.681 GB, free: 17.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007343/21.34, allocations: 1.937 MB / 5.683 GB, free: 17.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00907/21.35, allocations: 3.206 MB / 5.686 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008964/21.36, allocations: 2.501 MB / 5.689 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.419e-05/21.36, allocations: 13.81 kB / 5.689 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.02443/21.38, allocations: 5.986 MB / 5.695 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.006787/21.39, allocations: 15.52 MB / 5.71 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/21.39, allocations: 40.16 kB / 5.71 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008521/21.4, allocations: 0.9911 MB / 5.711 GB, free: 12.94 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007647/21.4, allocations: 0.9257 MB / 5.712 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008425/21.41, allocations: 2.802 MB / 5.715 GB, free: 10.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007924/21.42, allocations: 386.4 kB / 5.715 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001635/21.42, allocations: 282.7 kB / 5.715 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/21.42, allocations: 7.469 kB / 5.715 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02345/21.45, allocations: 5.751 MB / 5.721 GB, free: 8.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/21.45, allocations: 40.16 kB / 5.721 GB, free: 8.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008288/21.45, allocations: 0.982 MB / 5.722 GB, free: 8.277 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007514/21.46, allocations: 0.9287 MB / 5.723 GB, free: 8.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007916/21.47, allocations: 2.793 MB / 5.725 GB, free: 6.211 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00641/21.48, allocations: 373.1 kB / 5.726 GB, free: 6.113 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001641/21.48, allocations: 287.6 kB / 5.726 GB, free: 5.949 MB / 0.5573 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 () * Number of clocked 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.004342/21.48, allocations: 0.9806 MB / 5.727 GB, free: 5.059 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/21.48, allocations: 288.5 kB / 5.727 GB, free: 4.773 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02597/21.51, allocations: 6.064 MB / 5.733 GB, free: 15.68 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.45e-05/21.51, allocations: 35.38 kB / 5.733 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/21.51, allocations: 0 / 5.733 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001124/21.51, allocations: 16.92 kB / 5.733 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0323/21.54, allocations: 8.832 MB / 5.742 GB, free: 8.484 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.923e-05/21.54, allocations: 7.953 kB / 5.742 GB, free: 8.477 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005575/21.55, allocations: 0.5752 MB / 5.742 GB, free: 7.996 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01041/21.56, allocations: 1.161 MB / 5.744 GB, free: 7.148 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001155/21.56, allocations: 128.4 kB / 5.744 GB, free: 7.051 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007056/21.57, allocations: 2.67 MB / 5.746 GB, free: 4.496 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/21.57, allocations: 3.938 kB / 5.746 GB, free: 4.492 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5646/22.13, allocations: 8.069 MB / 5.754 GB, free: 65.35 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00374/22.13, allocations: 0.8573 MB / 5.755 GB, free: 65.26 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001747/22.14, allocations: 74.16 kB / 5.755 GB, free: 65.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006029/22.14, allocations: 283 kB / 5.755 GB, free: 65.26 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001202/22.14, allocations: 216.9 kB / 5.756 GB, free: 65.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001044/22.15, allocations: 183.2 kB / 5.756 GB, free: 65.25 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.004221/22.15, allocations: 1.468 MB / 5.757 GB, free: 65.11 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.61e-07/22.15, allocations: 0 / 5.757 GB, free: 65.11 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02343/22.17, allocations: 4.236 MB / 5.761 GB, free: 65.11 MB / 0.573 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 () * Number of clocked 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.05101/22.22, allocations: 13.23 MB / 5.774 GB, free: 63.52 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02903/22.25, allocations: 8.223 MB / 5.782 GB, free: 62.93 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/22.25, allocations: 2.938 kB / 5.782 GB, free: 62.93 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009061/22.26, allocations: 2.352 MB / 5.785 GB, free: 62.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01148/22.27, allocations: 1.216 MB / 5.786 GB, free: 62.87 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04724/22.32, allocations: 39.9 MB / 5.825 GB, free: 30.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003808/22.32, allocations: 2.284 MB / 5.827 GB, free: 30.04 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005742/22.33, allocations: 1.514 MB / 5.828 GB, free: 30.03 MB / 0.573 GB Notification: Performance of SimCode: time 1.633e-06/22.33, allocations: 0 / 5.828 GB, free: 30.03 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.22/28.55, allocations: 144.1 MB / 5.969 GB, free: 73.41 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat