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.096/2.096, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004456/0.0004458, allocations: 19.98 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2811, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.393/8.675, allocations: 3.63 GB / 3.991 GB, free: 59.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/8.675, allocations: 90.2 kB / 3.991 GB, free: 59.11 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.501/10.18, allocations: 304.7 MB / 4.288 GB, free: 88.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.363e-06/10.18, allocations: 0 / 4.288 GB, free: 88.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.181e-05/10.18, allocations: 16.42 kB / 4.288 GB, free: 88.1 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.004281/10.18, allocations: 1.631 MB / 4.29 GB, free: 87.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/10.18, allocations: 11.72 kB / 4.29 GB, free: 87.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003522/10.18, allocations: 65.42 kB / 4.29 GB, free: 87.14 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/10.18, allocations: 403.2 kB / 4.29 GB, free: 86.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/10.18, allocations: 30.42 kB / 4.29 GB, free: 86.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-05/10.18, allocations: 37.09 kB / 4.29 GB, free: 86.92 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/10.18, allocations: 0.4953 MB / 4.291 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/10.18, allocations: 2.469 kB / 4.291 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/10.18, allocations: 19.25 kB / 4.291 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/10.18, allocations: 9.281 kB / 4.291 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/10.18, allocations: 492.2 kB / 4.291 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/10.19, allocations: 2.042 MB / 4.293 GB, free: 85.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006846/10.19, allocations: 384.3 kB / 4.294 GB, free: 85.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007631/10.19, allocations: 0.9508 MB / 4.295 GB, free: 84.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/10.19, allocations: 43.28 kB / 4.295 GB, free: 84.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 3.407e-06/10.19, allocations: 5.531 kB / 4.295 GB, free: 84.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=28): time 0.00122/10.19, allocations: 395.2 kB / 4.295 GB, free: 84.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/10.19, allocations: 107.9 kB / 4.295 GB, free: 84.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/10.19, allocations: 280.7 kB / 4.296 GB, free: 84.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/10.19, allocations: 32.67 kB / 4.296 GB, free: 84.05 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/10.19, allocations: 300.8 kB / 4.296 GB, free: 83.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.484e-05/10.19, allocations: 99.7 kB / 4.296 GB, free: 83.79 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.874e-05/10.19, allocations: 10.91 kB / 4.296 GB, free: 83.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.484e-05/10.19, allocations: 327.8 kB / 4.296 GB, free: 83.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/10.19, allocations: 129.5 kB / 4.296 GB, free: 83.47 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/10.19, allocations: 301.8 kB / 4.297 GB, free: 83.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/10.19, allocations: 238.3 kB / 4.297 GB, free: 83.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.385e-06/10.19, allocations: 0 / 4.297 GB, free: 83.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00124/10.19, allocations: 0.5365 MB / 4.297 GB, free: 83.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/10.19, allocations: 64.25 kB / 4.297 GB, free: 83.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/10.19, allocations: 3.562 kB / 4.297 GB, free: 83.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/10.19, allocations: 13.94 kB / 4.297 GB, free: 83.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/10.19, allocations: 107.2 kB / 4.298 GB, free: 83.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/10.19, allocations: 16.23 kB / 4.298 GB, free: 83.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004616/10.19, allocations: 60.19 kB / 4.298 GB, free: 82.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.434e-05/10.19, allocations: 32.39 kB / 4.298 GB, free: 82.98 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 () * Number of clocked 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.0002723/10.19, allocations: 181.1 kB / 4.298 GB, free: 82.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/10.19, allocations: 41.69 kB / 4.298 GB, free: 82.85 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/10.2, allocations: 435.1 kB / 4.298 GB, free: 82.74 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.841e-06/10.2, allocations: 0 / 4.298 GB, free: 82.74 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/10.2, allocations: 3.844 kB / 4.298 GB, free: 82.74 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.96e-06/10.2, allocations: 0 / 4.298 GB, free: 82.74 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/10.2, allocations: 1.046 MB / 4.299 GB, free: 82.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.056e-06/10.2, allocations: 3.688 kB / 4.299 GB, free: 82.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/10.2, allocations: 51.12 kB / 4.299 GB, free: 82.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/10.2, allocations: 10.03 kB / 4.299 GB, free: 82.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/10.2, allocations: 6.219 kB / 4.299 GB, free: 82.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.196e-06/10.2, allocations: 10.45 kB / 4.299 GB, free: 82.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.257e-06/10.2, allocations: 3.188 kB / 4.299 GB, free: 82.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007581/10.2, allocations: 0.6409 MB / 4.3 GB, free: 81.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/10.2, allocations: 131.4 kB / 4.3 GB, free: 81.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.126e-05/10.2, allocations: 10.19 kB / 4.3 GB, free: 81.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/10.2, allocations: 18.34 kB / 4.3 GB, free: 81.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.177e-05/10.2, allocations: 23.81 kB / 4.3 GB, free: 81.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/10.2, allocations: 13 kB / 4.3 GB, free: 81.56 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003392/10.2, allocations: 265.7 kB / 4.3 GB, free: 81.47 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.507e-06/10.2, allocations: 0 / 4.3 GB, free: 81.47 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001816/10.2, allocations: 466.6 kB / 4.301 GB, free: 81.38 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 () * Number of clocked 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.002549/10.2, allocations: 1.237 MB / 4.302 GB, free: 81.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009417/10.21, allocations: 423.4 kB / 4.303 GB, free: 81 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.855e-06/10.21, allocations: 0 / 4.303 GB, free: 81 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/10.21, allocations: 120.8 kB / 4.303 GB, free: 81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/10.21, allocations: 160.5 kB / 4.303 GB, free: 80.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/10.21, allocations: 1.085 MB / 4.304 GB, free: 80.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/10.21, allocations: 0.8353 MB / 4.305 GB, free: 79.76 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/10.21, allocations: 49.03 kB / 4.305 GB, free: 79.75 MB / 490.7 MB Notification: Performance of SimCode: time 1.627e-06/10.21, allocations: 0 / 4.305 GB, free: 79.75 MB / 490.7 MB Notification: Performance of Templates: time 0.02291/10.23, allocations: 14.2 MB / 4.319 GB, free: 78.87 MB / 490.7 MB