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.Sensors.TestTraceSubstances.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.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.132/2.132, allocations: 235 MB / 248.1 MB, free: 14.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.819e-05/3.834e-05, allocations: 4 kB / 309.7 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3204, allocations: 54.85 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.994/8.315, allocations: 3.63 GB / 3.986 GB, free: 42.54 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/8.315, allocations: 87.94 kB / 3.986 GB, free: 42.46 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.539/9.854, allocations: 304.2 MB / 4.283 GB, free: 91 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.274e-06/9.854, allocations: 0 / 4.283 GB, free: 91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.174e-05/9.854, allocations: 8.375 kB / 4.283 GB, free: 91 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004455/9.859, allocations: 1.6 MB / 4.285 GB, free: 90.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/9.859, allocations: 8.75 kB / 4.285 GB, free: 90.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003729/9.859, allocations: 60.75 kB / 4.285 GB, free: 90.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007439/9.86, allocations: 401.9 kB / 4.285 GB, free: 89.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/9.86, allocations: 28.75 kB / 4.285 GB, free: 89.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/9.86, allocations: 36.06 kB / 4.285 GB, free: 89.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009586/9.861, allocations: 487.4 kB / 4.286 GB, free: 89.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/9.861, allocations: 3.688 kB / 4.286 GB, free: 89.69 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/9.861, allocations: 15.03 kB / 4.286 GB, free: 89.69 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/9.861, allocations: 11.28 kB / 4.286 GB, free: 89.69 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009635/9.862, allocations: 459 kB / 4.286 GB, free: 89.69 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/9.866, allocations: 2.042 MB / 4.288 GB, free: 88.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/9.866, allocations: 357 kB / 4.288 GB, free: 88.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/9.867, allocations: 128.3 kB / 4.289 GB, free: 88.26 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007786/9.867, allocations: 0.9525 MB / 4.289 GB, free: 87.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/9.867, allocations: 48.98 kB / 4.29 GB, free: 87.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 4.145e-06/9.867, allocations: 0 / 4.29 GB, free: 87.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007247/9.868, allocations: 261.8 kB / 4.29 GB, free: 87.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/9.868, allocations: 109.4 kB / 4.29 GB, free: 87 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/9.869, allocations: 278.2 kB / 4.29 GB, free: 86.89 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/9.869, allocations: 28.7 kB / 4.29 GB, free: 86.86 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/9.869, allocations: 301.4 kB / 4.29 GB, free: 86.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/9.869, allocations: 106.1 kB / 4.291 GB, free: 86.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/9.869, allocations: 10.72 kB / 4.291 GB, free: 86.57 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.619e-05/9.869, allocations: 325.6 kB / 4.291 GB, free: 86.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/9.869, allocations: 103.6 kB / 4.291 GB, free: 86.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/9.87, allocations: 284.8 kB / 4.291 GB, free: 86.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/9.87, allocations: 213.6 kB / 4.291 GB, free: 85.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.695e-06/9.87, allocations: 3.062 kB / 4.291 GB, free: 85.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009766/9.871, allocations: 499.5 kB / 4.292 GB, free: 85.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.06e-05/9.871, allocations: 68.88 kB / 4.292 GB, free: 85.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/9.871, allocations: 7.891 kB / 4.292 GB, free: 85.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/9.871, allocations: 11 kB / 4.292 GB, free: 85.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/9.872, allocations: 102.6 kB / 4.292 GB, free: 85.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/9.872, allocations: 14.72 kB / 4.292 GB, free: 85.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/9.872, allocations: 57.38 kB / 4.292 GB, free: 85.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/9.872, allocations: 21.97 kB / 4.292 GB, free: 85.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001243/9.872, allocations: 140.2 kB / 4.292 GB, free: 85.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/9.873, allocations: 34.5 kB / 4.292 GB, free: 85.59 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/9.874, allocations: 410.3 kB / 4.293 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.349e-06/9.874, allocations: 3.969 kB / 4.293 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.405e-06/9.874, allocations: 0 / 4.293 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.715e-06/9.874, allocations: 3.562 kB / 4.293 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/9.875, allocations: 1.004 MB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.005e-06/9.875, allocations: 3.5 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/9.875, allocations: 50.05 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.332e-06/9.875, allocations: 5.938 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/9.876, allocations: 7.5 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.262e-06/9.876, allocations: 3.312 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.194e-06/9.876, allocations: 7 kB / 4.294 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005516/9.876, allocations: 0.606 MB / 4.294 GB, free: 84.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/9.876, allocations: 134.4 kB / 4.295 GB, free: 84.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.95e-05/9.876, allocations: 10.19 kB / 4.295 GB, free: 84.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/9.877, allocations: 16.64 kB / 4.295 GB, free: 84.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.168e-05/9.877, allocations: 30.8 kB / 4.295 GB, free: 84.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/9.877, allocations: 12.66 kB / 4.295 GB, free: 84.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003299/9.877, allocations: 256.4 kB / 4.295 GB, free: 84.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.1e-07/9.877, allocations: 0 / 4.295 GB, free: 84.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001894/9.879, allocations: 470.8 kB / 4.295 GB, free: 84.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002721/9.882, allocations: 1.233 MB / 4.297 GB, free: 83.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0007704/9.883, allocations: 382.4 kB / 4.297 GB, free: 83.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.185e-06/9.883, allocations: 0 / 4.297 GB, free: 83.65 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/9.883, allocations: 101.6 kB / 4.297 GB, free: 83.64 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/9.884, allocations: 160.7 kB / 4.297 GB, free: 83.63 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/9.886, allocations: 0.6849 MB / 4.298 GB, free: 83.37 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/9.886, allocations: 0.8394 MB / 4.299 GB, free: 82.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/9.886, allocations: 44.78 kB / 4.299 GB, free: 82.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.595e-06/9.886, allocations: 3.938 kB / 4.299 GB, free: 82.66 MB / 490.7 MB Notification: Performance of Templates: time 0.02332/9.91, allocations: 14.15 MB / 4.312 GB, free: 81.48 MB / 490.7 MB