Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.3 MB / 179.2 MB, free: 7.508 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.902e-05/1.908e-05, allocations: 4 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07076/0.07081, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.3514, allocations: 65.37 MB / 326.6 MB, free: 6.551 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.3516, allocations: 63.97 kB / 326.7 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006787/0.3584, allocations: 1.77 MB / 328.5 MB, free: 5.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.078e-06/0.3585, allocations: 0 / 328.5 MB, free: 5.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.677e-06/0.3585, allocations: 0 / 328.5 MB, free: 5.012 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004586/0.359, allocations: 357 kB / 328.8 MB, free: 4.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.359, allocations: 12.03 kB / 328.8 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.3592, allocations: 7.906 kB / 328.8 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.3593, allocations: 174.9 kB / 329 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.3594, allocations: 8 kB / 329 MB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.3594, allocations: 4 kB / 329 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001599/0.3596, allocations: 50.5 kB / 329.1 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.3598, allocations: 67 kB / 329.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3598, allocations: 3.906 kB / 329.1 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3598, allocations: 0 / 329.1 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.708e-06/0.3598, allocations: 4 kB / 329.1 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007691/0.3606, allocations: 369.6 kB / 329.5 MB, free: 3.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.3608, allocations: 59.8 kB / 329.6 MB, free: 3.871 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.902e-05/0.3609, allocations: 39.06 kB / 329.6 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.3609, allocations: 3.938 kB / 329.6 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.3609, allocations: 38.56 kB / 329.6 MB, free: 3.789 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.237e-06/0.3609, allocations: 0 / 329.6 MB, free: 3.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002139/0.3612, allocations: 64.08 kB / 329.7 MB, free: 3.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.3612, allocations: 55.41 kB / 329.8 MB, free: 3.664 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.806e-05/0.3613, allocations: 92.56 kB / 329.8 MB, free: 3.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.3614, allocations: 25.7 kB / 329.9 MB, free: 3.539 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.3615, allocations: 173.9 kB / 330 MB, free: 3.371 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.3615, allocations: 31.05 kB / 330.1 MB, free: 3.344 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-06/0.3615, allocations: 0 / 330.1 MB, free: 3.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3617, allocations: 318.8 kB / 330.4 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.088e-05/0.3618, allocations: 18.81 kB / 330.4 MB, free: 3.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.525e-05/0.3619, allocations: 44.81 kB / 330.4 MB, free: 2.969 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.311e-05/0.3619, allocations: 31.36 kB / 330.5 MB, free: 2.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.362, allocations: 0 / 330.5 MB, free: 2.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002032/0.3622, allocations: 97.73 kB / 330.6 MB, free: 2.863 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3622, allocations: 11.95 kB / 330.6 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.184e-06/0.3622, allocations: 0 / 330.6 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3622, allocations: 0 / 330.6 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3624, allocations: 23.94 kB / 330.6 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.578e-06/0.3624, allocations: 4 kB / 330.6 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.949e-05/0.3625, allocations: 7.984 kB / 330.6 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3625, allocations: 0 / 330.6 MB, free: 2.816 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 prepare postOptimizeDAE: time 0.0001005/0.3627, allocations: 109 kB / 330.7 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.3627, allocations: 7.906 kB / 330.7 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.3628, allocations: 19.75 kB / 330.8 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.402e-06/0.3628, allocations: 3.938 kB / 330.8 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.239e-06/0.3628, allocations: 0 / 330.8 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3628, allocations: 0 / 330.8 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.363, allocations: 158.7 kB / 330.9 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-06/0.3631, allocations: 4 kB / 330.9 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.3632, allocations: 16 kB / 330.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.959e-06/0.3632, allocations: 0 / 330.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3633, allocations: 0 / 330.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.394e-06/0.3633, allocations: 4.25 kB / 330.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.767e-06/0.3633, allocations: 3.953 kB / 330.9 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.3636, allocations: 195.3 kB / 331.1 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.3636, allocations: 81.02 kB / 331.2 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.851e-05/0.3637, allocations: 0 / 331.2 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.432e-05/0.3638, allocations: 7.938 kB / 331.2 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.848e-05/0.3638, allocations: 7.922 kB / 331.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.3638, allocations: 12.02 kB / 331.2 MB, free: 2.152 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.808e-05/0.3639, allocations: 82.66 kB / 331.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.3639, allocations: 0 / 331.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000333/0.3642, allocations: 19.94 kB / 331.3 MB, free: 2.055 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001375/0.3644, allocations: 95.25 kB / 331.4 MB, free: 1.953 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001576/0.3646, allocations: 53.67 kB / 331.5 MB, free: 1.914 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.609e-06/0.3646, allocations: 0 / 331.5 MB, free: 1.914 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.677e-05/0.3646, allocations: 22.69 kB / 331.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.3649, allocations: 12.06 kB / 331.5 MB, free: 1.887 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006115/0.3655, allocations: 256.1 kB / 331.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.3659, allocations: 0.7002 MB / 332.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.366, allocations: 15.38 kB / 332.5 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of SimCode: time 1.502e-06/0.366, allocations: 0 / 332.5 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of Templates: time 0.002722/0.3687, allocations: 0.9167 MB / 333.4 MB, free: 15.96 MB / 282.7 MB