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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.809/1.809, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.649e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2599, allocations: 38.76 MB / 267.6 MB, free: 9.324 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3618, allocations: 66.02 MB / 333.6 MB, free: 7.211 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.3621, allocations: 67.97 kB / 333.7 MB, free: 7.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007016/0.3691, allocations: 1.763 MB / 335.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.608e-06/0.3691, allocations: 0 / 335.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3692, allocations: 4 kB / 335.4 MB, free: 5.371 MB / 282.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.0004472/0.3696, allocations: 360 kB / 335.8 MB, free: 4.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3697, allocations: 8.031 kB / 335.8 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.3698, allocations: 11.91 kB / 335.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.37, allocations: 174.9 kB / 336 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.37, allocations: 11.94 kB / 336 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.741e-05/0.3701, allocations: 15.95 kB / 336 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.3703, allocations: 77.69 kB / 336.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3703, allocations: 3.906 kB / 336.1 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3703, allocations: 4 kB / 336.1 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.269e-06/0.3704, allocations: 4 kB / 336.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.3705, allocations: 51.97 kB / 336.1 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008361/0.3714, allocations: 404.6 kB / 336.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.3716, allocations: 74.48 kB / 336.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.649e-05/0.3717, allocations: 32.86 kB / 336.6 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.3717, allocations: 0 / 336.6 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.3717, allocations: 38.55 kB / 336.7 MB, free: 3.965 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 4.268e-06/0.3717, allocations: 4 kB / 336.7 MB, free: 3.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002234/0.372, allocations: 65.84 kB / 336.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.372, allocations: 55.39 kB / 336.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.925e-05/0.3722, allocations: 101 kB / 336.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.3722, allocations: 29.7 kB / 336.9 MB, free: 3.684 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3723, allocations: 170.3 kB / 337.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.3724, allocations: 27.56 kB / 337.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-06/0.3724, allocations: 4 kB / 337.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3726, allocations: 318.8 kB / 337.4 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.693e-05/0.3726, allocations: 28 kB / 337.5 MB, free: 3.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.3727, allocations: 46.52 kB / 337.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.84e-05/0.3728, allocations: 27.98 kB / 337.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3728, allocations: 0 / 337.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002303/0.3731, allocations: 101.5 kB / 337.6 MB, free: 2.949 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3731, allocations: 4 kB / 337.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.8e-06/0.3731, allocations: 8.062 kB / 337.6 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3732, allocations: 0 / 337.6 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.3733, allocations: 23.98 kB / 337.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.004e-06/0.3734, allocations: 0 / 337.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.267e-05/0.3735, allocations: 8 kB / 337.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.3735, allocations: 4 kB / 337.7 MB, free: 2.902 MB / 282.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.0001019/0.3736, allocations: 124.8 kB / 337.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.3736, allocations: 3.906 kB / 337.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.3737, allocations: 16.62 kB / 337.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.401e-06/0.3737, allocations: 0 / 337.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.99e-06/0.3737, allocations: 0 / 337.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.874e-06/0.3737, allocations: 0 / 337.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.374, allocations: 189.6 kB / 338 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-06/0.374, allocations: 0 / 338 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.3742, allocations: 19.94 kB / 338 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.709e-06/0.3742, allocations: 4 kB / 338 MB, free: 2.496 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.3742, allocations: 7.984 kB / 338 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.185e-06/0.3743, allocations: 0 / 338 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-06/0.3743, allocations: 0 / 338 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3746, allocations: 191.4 kB / 338.2 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.3746, allocations: 89 kB / 338.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.3747, allocations: 3.938 kB / 338.3 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.372e-05/0.3748, allocations: 4 kB / 338.3 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.122e-05/0.3748, allocations: 7.984 kB / 338.3 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.917e-06/0.3748, allocations: 4 kB / 338.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.435e-05/0.3749, allocations: 83.59 kB / 338.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.99e-07/0.3749, allocations: 0 / 338.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00034/0.3753, allocations: 27.94 kB / 338.4 MB, free: 2.051 MB / 282.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.0001457/0.3754, allocations: 99.23 kB / 338.5 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.3756, allocations: 55.94 kB / 338.6 MB, free: 1.887 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.83e-06/0.3756, allocations: 0 / 338.6 MB, free: 1.887 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.509e-05/0.3757, allocations: 23.94 kB / 338.6 MB, free: 1.863 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.3759, allocations: 9.219 kB / 338.6 MB, free: 1.855 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006272/0.3766, allocations: 263.3 kB / 338.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.377, allocations: 0.7004 MB / 339.6 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.693e-05/0.377, allocations: 11.44 kB / 339.6 MB, free: 0.832 MB / 282.7 MB Notification: Performance of SimCode: time 1.58e-06/0.3771, allocations: 0 / 339.6 MB, free: 0.832 MB / 282.7 MB Notification: Performance of Templates: time 0.002674/0.3797, allocations: 0.9344 MB / 340.5 MB, free: 15.89 MB / 298.7 MB