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.TestJunctionTraceSubstances.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.035e-05/2.042e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3406, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.28/11.62, allocations: 3.685 GB / 4.035 GB, free: 96.14 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/11.62, allocations: 86.25 kB / 4.035 GB, free: 96.09 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.081/20.7, allocations: 1.444 GB / 5.479 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.434e-06/20.7, allocations: 0 / 5.479 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003122/20.7, allocations: 63.92 kB / 5.479 GB, free: 0.5625 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.03758/20.74, allocations: 7.283 MB / 5.486 GB, free: 9.199 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.175e-05/20.74, allocations: 12.03 kB / 5.486 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/20.74, allocations: 281 kB / 5.486 GB, free: 8.91 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/20.75, allocations: 1.628 MB / 5.488 GB, free: 7.227 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/20.75, allocations: 64 kB / 5.488 GB, free: 7.164 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/20.75, allocations: 108 kB / 5.488 GB, free: 7.059 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01052/20.76, allocations: 3.092 MB / 5.491 GB, free: 3.965 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/20.77, allocations: 2.801 MB / 5.494 GB, free: 1.098 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/20.77, allocations: 7.828 kB / 5.494 GB, free: 1.094 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009007/20.77, allocations: 4 kB / 5.494 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004421/20.78, allocations: 183.7 kB / 5.494 GB, free: 0.9102 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04155/20.82, allocations: 11.66 MB / 5.505 GB, free: 4.5 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005566/20.82, allocations: 1.479 MB / 5.507 GB, free: 3.008 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003071/20.83, allocations: 0.9541 MB / 5.508 GB, free: 2.051 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002537/20.83, allocations: 1.677 MB / 5.509 GB, free: 44 kB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5624/21.39, allocations: 52.91 kB / 5.509 GB, free: 43.73 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003782/21.39, allocations: 259.5 kB / 5.51 GB, free: 43.73 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 1.153e-05/21.39, allocations: 1.125 kB / 5.51 GB, free: 43.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=165): time 0.0438/21.44, allocations: 6.883 MB / 5.516 GB, free: 43.15 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/21.44, allocations: 204.5 kB / 5.517 GB, free: 42.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002562/21.44, allocations: 1.192 MB / 5.518 GB, free: 42.76 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006485/21.44, allocations: 26.77 kB / 5.518 GB, free: 42.73 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007861/21.44, allocations: 1.013 MB / 5.519 GB, free: 42.26 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009087/21.44, allocations: 0.5524 MB / 5.519 GB, free: 41.98 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002938/21.44, allocations: 5.781 kB / 5.519 GB, free: 41.98 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001791/21.44, allocations: 405 kB / 5.52 GB, free: 41.66 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002693/21.45, allocations: 1.074 MB / 5.521 GB, free: 41.66 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002957/21.45, allocations: 1.593 MB / 5.522 GB, free: 41.08 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03067/21.48, allocations: 3.865 MB / 5.526 GB, free: 41.06 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.003e-05/21.48, allocations: 2.375 kB / 5.526 GB, free: 41.06 MB / 0.573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.03792/21.52, allocations: 5.798 MB / 5.532 GB, free: 40.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001538/21.52, allocations: 5.81 MB / 5.537 GB, free: 34.88 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.692e-05/21.52, allocations: 17.22 kB / 5.537 GB, free: 34.88 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008223/21.53, allocations: 0.8957 MB / 5.538 GB, free: 34.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004816/21.53, allocations: 0.539 MB / 5.539 GB, free: 34.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004597/21.54, allocations: 2.144 MB / 5.541 GB, free: 33.81 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005046/21.54, allocations: 161.6 kB / 5.541 GB, free: 33.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006024/21.54, allocations: 179.5 kB / 5.541 GB, free: 33.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/21.54, allocations: 2.938 kB / 5.541 GB, free: 33.8 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0428/21.59, allocations: 5.832 MB / 5.547 GB, free: 33.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/21.59, allocations: 16.09 kB / 5.547 GB, free: 33.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007921/21.59, allocations: 0.8058 MB / 5.548 GB, free: 33.72 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005005/21.6, allocations: 0.545 MB / 5.548 GB, free: 33.72 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/21.6, allocations: 1.851 MB / 5.55 GB, free: 32.67 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004265/21.61, allocations: 146 kB / 5.55 GB, free: 32.67 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005452/21.61, allocations: 177.4 kB / 5.55 GB, free: 32.67 MB / 0.573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junction.port_2.m_flow:VARIABLE(flow=true min = max(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59) max = min(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59) unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (271): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001092/21.61, allocations: 187.4 kB / 5.551 GB, free: 32.55 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01404/21.62, allocations: 2.835 MB / 5.553 GB, free: 32.38 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00119/21.62, allocations: 189.8 kB / 5.554 GB, free: 32.28 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01363/21.64, allocations: 3.854 MB / 5.557 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/21.64, allocations: 16.22 kB / 5.557 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/21.64, allocations: 0 / 5.557 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/21.64, allocations: 7.453 kB / 5.557 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/21.65, allocations: 5.052 MB / 5.562 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/21.65, allocations: 3.281 kB / 5.562 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002681/21.66, allocations: 307.1 kB / 5.563 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005065/21.66, allocations: 0.7596 MB / 5.563 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004711/21.66, allocations: 49.06 kB / 5.563 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/21.67, allocations: 2.054 MB / 5.565 GB, free: 30.47 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/21.67, allocations: 5.156 kB / 5.565 GB, free: 30.47 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/21.68, allocations: 4.227 MB / 5.569 GB, free: 29.68 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/21.68, allocations: 326.8 kB / 5.57 GB, free: 29.49 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005736/21.68, allocations: 10.47 kB / 5.57 GB, free: 29.49 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00298/21.68, allocations: 122 kB / 5.57 GB, free: 29.48 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004169/21.69, allocations: 132.6 kB / 5.57 GB, free: 29.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003441/21.69, allocations: 104.4 kB / 5.57 GB, free: 29.48 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001913/21.69, allocations: 0.9269 MB / 5.571 GB, free: 29.37 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.21e-07/21.69, allocations: 0 / 5.571 GB, free: 29.37 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01432/21.7, allocations: 2.979 MB / 5.574 GB, free: 29.37 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0306/21.73, allocations: 10.26 MB / 5.584 GB, free: 26.69 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01396/21.75, allocations: 4.271 MB / 5.588 GB, free: 26.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/21.75, allocations: 3.281 kB / 5.588 GB, free: 26.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003864/21.75, allocations: 1.13 MB / 5.589 GB, free: 26.39 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009125/21.76, allocations: 0.9069 MB / 5.59 GB, free: 26.37 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02206/21.78, allocations: 5.256 MB / 5.595 GB, free: 25.52 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/21.78, allocations: 1.701 MB / 5.597 GB, free: 24.79 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003635/21.79, allocations: 0.9808 MB / 5.598 GB, free: 24.79 MB / 0.573 GB Notification: Performance of SimCode: time 1.844e-06/21.79, allocations: 0 / 5.598 GB, free: 24.79 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.919/26.71, allocations: 96.17 MB / 5.692 GB, free: 9.621 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat does not exist to compare? outputFormat=mat