Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadModel(Modelica): time 1.594/1.594, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003639, allocations: 12 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07084/0.07123, allocations: 38.76 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/0.3935, allocations: 67.81 MB / 339.8 MB, free: 6.074 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.3937, allocations: 67.28 kB / 339.9 MB, free: 6.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01026/0.404, allocations: 2.732 MB / 342.6 MB, free: 3.691 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.116e-06/0.4041, allocations: 0 / 342.6 MB, free: 3.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.4041, allocations: 7.938 kB / 342.6 MB, free: 3.684 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006092/0.4047, allocations: 439.1 kB / 343 MB, free: 3.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4048, allocations: 8.031 kB / 343.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.4049, allocations: 11.91 kB / 343.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.4051, allocations: 202.5 kB / 343.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.4052, allocations: 10.62 kB / 343.3 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.4052, allocations: 11 kB / 343.3 MB, free: 2.953 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.4055, allocations: 118 kB / 343.4 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4056, allocations: 0 / 343.4 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.4056, allocations: 2.812 kB / 343.4 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4056, allocations: 8 kB / 343.4 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.4059, allocations: 77.05 kB / 343.5 MB, free: 2.805 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.4069, allocations: 0.5495 MB / 344 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.4072, allocations: 83.75 kB / 344.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.4073, allocations: 0 / 344.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.4073, allocations: 34.56 kB / 344.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 5.06e-06/0.4073, allocations: 0 / 344.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0008315/0.4082, allocations: 260.5 kB / 344.4 MB, free: 1.895 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.4082, allocations: 59.3 kB / 344.5 MB, free: 1.824 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.4084, allocations: 143.2 kB / 344.6 MB, free: 1.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.4085, allocations: 29.64 kB / 344.6 MB, free: 1.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4086, allocations: 185.7 kB / 344.8 MB, free: 1.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.4086, allocations: 27.39 kB / 344.8 MB, free: 1.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-06/0.4086, allocations: 0 / 344.8 MB, free: 1.457 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4088, allocations: 318.3 kB / 345.2 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.756e-05/0.4089, allocations: 27.3 kB / 345.2 MB, free: 1.121 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.409, allocations: 42.19 kB / 345.2 MB, free: 1.078 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.905e-05/0.4091, allocations: 27.42 kB / 345.2 MB, free: 1.059 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.506e-06/0.4092, allocations: 4 kB / 345.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004039/0.4096, allocations: 140.3 kB / 345.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.4096, allocations: 4 kB / 345.4 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.005e-06/0.4096, allocations: 4 kB / 345.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002176/0.4099, allocations: 36.58 kB / 345.4 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.708e-05/0.41, allocations: 12.06 kB / 345.4 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/0.4119, allocations: 1.539 MB / 347 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.4121, allocations: 4 kB / 347 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.4121, allocations: 4 kB / 347 MB, free: 15.31 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001626/0.4123, allocations: 124.6 kB / 347.1 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.107e-05/0.4123, allocations: 7.906 kB / 347.1 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.4124, allocations: 23.58 kB / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-06/0.4124, allocations: 0 / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.81e-06/0.4124, allocations: 0 / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.225e-06/0.4124, allocations: 4 kB / 347.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.4127, allocations: 214.2 kB / 347.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-06/0.4127, allocations: 0 / 347.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.415e-05/0.4128, allocations: 4 kB / 347.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.413, allocations: 35.83 kB / 347.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.413, allocations: 3.562 kB / 347.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001725/0.4148, allocations: 1.519 MB / 348.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.411e-06/0.4148, allocations: 0 / 348.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000459/0.4152, allocations: 221.5 kB / 349.1 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.169e-05/0.4154, allocations: 92.88 kB / 349.2 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.4154, allocations: 7.953 kB / 349.2 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.4156, allocations: 8.062 kB / 349.2 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.4156, allocations: 7.984 kB / 349.2 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.4156, allocations: 0 / 349.2 MB, free: 13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001172/0.4158, allocations: 122.6 kB / 349.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.75e-07/0.4158, allocations: 0 / 349.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005245/0.4163, allocations: 43.16 kB / 349.4 MB, free: 12.86 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001327/0.4165, allocations: 107.2 kB / 349.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004663/0.4169, allocations: 183.8 kB / 349.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.304e-06/0.417, allocations: 0 / 349.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.4172, allocations: 162.3 kB / 349.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.4175, allocations: 16.52 kB / 349.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006559/0.4182, allocations: 371.3 kB / 350.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.4186, allocations: 0.7121 MB / 350.9 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.4186, allocations: 11.44 kB / 351 MB, free: 11.27 MB / 282.7 MB Notification: Performance of SimCode: time 1.296e-06/0.4187, allocations: 4 kB / 351 MB, free: 11.27 MB / 282.7 MB Notification: Performance of Templates: time 0.004219/0.4229, allocations: 1.841 MB / 352.8 MB, free: 9.441 MB / 282.7 MB