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/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.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.252/2.252, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004496/0.0004497, allocations: 19.98 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3615, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.06/11.43, allocations: 3.686 GB / 4.047 GB, free: 123.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/11.43, allocations: 93.89 kB / 4.047 GB, free: 123.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.907/20.33, allocations: 1.459 GB / 5.506 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.635e-06/20.33, allocations: 2.875 kB / 5.506 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003177/20.33, allocations: 66.41 kB / 5.507 GB, free: 25.66 MB / 0.5573 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.03807/20.37, allocations: 7.535 MB / 5.514 GB, free: 21.59 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/20.37, allocations: 9.062 kB / 5.514 GB, free: 21.59 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001791/20.37, allocations: 287.2 kB / 5.514 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001874/20.37, allocations: 292.8 kB / 5.514 GB, free: 21.42 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007027/20.38, allocations: 1.628 MB / 5.516 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004093/20.38, allocations: 150.7 kB / 5.516 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/20.38, allocations: 185 kB / 5.516 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/20.39, allocations: 3.147 MB / 5.519 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-05/20.39, allocations: 3.656 kB / 5.519 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005688/20.39, allocations: 84.72 kB / 5.519 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003805/20.4, allocations: 184 kB / 5.52 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/20.41, allocations: 3.515 MB / 5.523 GB, free: 20.68 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03742/20.44, allocations: 11.98 MB / 5.535 GB, free: 15.96 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005388/20.45, allocations: 1.633 MB / 5.536 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002152/20.45, allocations: 1.747 MB / 5.538 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.578e-05/20.45, allocations: 54.72 kB / 5.538 GB, free: 14.17 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003646/20.46, allocations: 320 kB / 5.538 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=157): time 1.029e-05/20.46, allocations: 3.094 kB / 5.538 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.05245/20.51, allocations: 8.954 MB / 5.547 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/20.51, allocations: 202.6 kB / 5.547 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/20.51, allocations: 1.442 MB / 5.549 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007541/20.51, allocations: 59.48 kB / 5.549 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007899/20.51, allocations: 0.9742 MB / 5.55 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/20.51, allocations: 0.5869 MB / 5.55 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004673/20.51, allocations: 45.88 kB / 5.55 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002531/20.51, allocations: 413.2 kB / 5.551 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004463/20.52, allocations: 1.191 MB / 5.552 GB, free: 11.45 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004966/20.52, allocations: 1.723 MB / 5.554 GB, free: 10.85 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004973/20.53, allocations: 1.474 MB / 5.555 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.109e-05/20.53, allocations: 3.531 kB / 5.555 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.01737/20.55, allocations: 3.938 MB / 5.559 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001423/20.55, allocations: 5.813 MB / 5.565 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.992e-05/20.55, allocations: 15.62 kB / 5.565 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01352/20.56, allocations: 1.325 MB / 5.566 GB, free: 4.383 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004785/20.57, allocations: 0.544 MB / 5.566 GB, free: 4.352 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005329/20.57, allocations: 2.122 MB / 5.569 GB, free: 19.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00534/20.58, allocations: 211.5 kB / 5.569 GB, free: 19.29 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009695/20.58, allocations: 179.6 kB / 5.569 GB, free: 19.29 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/20.58, allocations: 7.562 kB / 5.569 GB, free: 19.29 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01738/20.6, allocations: 3.782 MB / 5.573 GB, free: 18.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.277e-05/20.6, allocations: 19.11 kB / 5.573 GB, free: 18.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009509/20.61, allocations: 0.956 MB / 5.574 GB, free: 18.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004811/20.61, allocations: 0.5466 MB / 5.574 GB, free: 18.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/20.62, allocations: 1.906 MB / 5.576 GB, free: 17.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004253/20.62, allocations: 196.3 kB / 5.576 GB, free: 17.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006418/20.62, allocations: 179 kB / 5.576 GB, free: 17.18 MB / 0.573 GB 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 () * Number of clocked 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,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.002408/20.62, allocations: 0.6468 MB / 5.577 GB, free: 16.75 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000787/20.62, allocations: 204.5 kB / 5.577 GB, free: 16.65 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02082/20.64, allocations: 4.014 MB / 5.581 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/20.64, allocations: 19.19 kB / 5.581 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/20.64, allocations: 3.938 kB / 5.581 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.659e-05/20.64, allocations: 9.703 kB / 5.581 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01835/20.66, allocations: 5.663 MB / 5.587 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.866e-05/20.66, allocations: 3.719 kB / 5.587 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003163/20.67, allocations: 343.5 kB / 5.587 GB, free: 12.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01062/20.68, allocations: 1.172 MB / 5.588 GB, free: 12.63 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007496/20.68, allocations: 80.83 kB / 5.588 GB, free: 12.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004605/20.68, allocations: 2.048 MB / 5.59 GB, free: 11.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/20.68, allocations: 6.719 kB / 5.59 GB, free: 11.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/20.7, allocations: 4.728 MB / 5.595 GB, free: 8.754 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/20.7, allocations: 309.2 kB / 5.595 GB, free: 8.453 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/20.7, allocations: 51.42 kB / 5.595 GB, free: 8.406 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004245/20.71, allocations: 148.8 kB / 5.595 GB, free: 8.293 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008726/20.71, allocations: 144 kB / 5.595 GB, free: 8.199 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005595/20.71, allocations: 121.3 kB / 5.596 GB, free: 8.098 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003362/20.71, allocations: 1.111 MB / 5.597 GB, free: 7.168 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.092e-06/20.71, allocations: 0 / 5.597 GB, free: 7.168 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01779/20.73, allocations: 3.174 MB / 5.6 GB, free: 4.086 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 164 * 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.0372/20.77, allocations: 10.48 MB / 5.61 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01953/20.78, allocations: 4.816 MB / 5.615 GB, free: 6.855 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/20.78, allocations: 0 / 5.615 GB, free: 6.855 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005644/20.79, allocations: 1.359 MB / 5.616 GB, free: 5.68 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009656/20.8, allocations: 1.031 MB / 5.617 GB, free: 4.926 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.599/21.4, allocations: 17.98 MB / 5.635 GB, free: 41.48 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/21.4, allocations: 1.719 MB / 5.636 GB, free: 40.74 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003627/21.41, allocations: 0.9941 MB / 5.637 GB, free: 40.74 MB / 0.5886 GB Notification: Performance of SimCode: time 1.272e-06/21.41, allocations: 0 / 5.637 GB, free: 40.74 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.795/26.2, allocations: 96.54 MB / 5.731 GB, free: 34.89 MB / 0.5886 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