Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 171.2 MB / 187.3 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.000353, allocations: 12 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08445, allocations: 38.78 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3779/0.4624, allocations: 68.68 MB / 341.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.4627, allocations: 76.08 kB / 341.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01806/0.4808, allocations: 4.019 MB / 345.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.4808, allocations: 0 / 345.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.136e-05/0.4809, allocations: 4 kB / 345.3 MB, free: 1.809 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.00114/0.482, allocations: 0.5118 MB / 345.8 MB, free: 1.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.4821, allocations: 8.031 kB / 345.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.756e-05/0.4822, allocations: 31.66 kB / 345.9 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.4825, allocations: 229.4 kB / 346.1 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.4826, allocations: 19.52 kB / 346.1 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.4826, allocations: 21.75 kB / 346.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.4833, allocations: 238.9 kB / 346.4 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.4833, allocations: 0 / 346.4 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.4833, allocations: 13.56 kB / 346.4 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.4834, allocations: 4 kB / 346.4 MB, free: 0.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005141/0.4839, allocations: 153.4 kB / 346.5 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.4859, allocations: 0.8597 MB / 347.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.4863, allocations: 156.1 kB / 347.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.4864, allocations: 7.984 kB / 347.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.4864, allocations: 41.27 kB / 347.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.325e-06/0.4864, allocations: 0 / 347.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.002148/0.4886, allocations: 427.6 kB / 348 MB, free: 15.31 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.4887, allocations: 54.91 kB / 348.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.4889, allocations: 183.3 kB / 348.2 MB, free: 15.08 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.489, allocations: 29.33 kB / 348.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4891, allocations: 217.2 kB / 348.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.158e-05/0.4892, allocations: 58.61 kB / 348.5 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.618e-05/0.4892, allocations: 3.5 kB / 348.5 MB, free: 14.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4893, allocations: 330.6 kB / 348.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.4896, allocations: 54.16 kB / 348.9 MB, free: 14.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.4898, allocations: 94.59 kB / 349 MB, free: 14.35 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.49, allocations: 69.98 kB / 349.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4901, allocations: 0 / 349.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007655/0.4908, allocations: 239.3 kB / 349.3 MB, free: 14.13 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.4909, allocations: 8 kB / 349.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.4909, allocations: 128 / 349.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/0.4933, allocations: 219.8 kB / 349.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.4936, allocations: 43.91 kB / 349.6 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006754/0.4943, allocations: 0.6094 MB / 350.2 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.4946, allocations: 19.75 kB / 350.2 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.4946, allocations: 11.5 kB / 350.2 MB, free: 13.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (17): * Single equations (assignments): 16 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001978/0.4948, allocations: 131.5 kB / 350.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.4949, allocations: 19.8 kB / 350.4 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007275/0.4956, allocations: 240.2 kB / 350.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.4956, allocations: 7.953 kB / 350.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4957, allocations: 0 / 350.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4957, allocations: 3.984 kB / 350.6 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.4962, allocations: 290.5 kB / 350.9 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.4962, allocations: 4 kB / 350.9 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.4966, allocations: 27.97 kB / 350.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/0.4986, allocations: 225.6 kB / 351.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.4987, allocations: 0 / 351.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006679/0.4994, allocations: 0.6253 MB / 351.8 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4994, allocations: 4.062 kB / 351.8 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009743/0.5004, allocations: 390.6 kB / 352.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.5006, allocations: 107 kB / 352.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.5006, allocations: 7.125 kB / 352.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.5009, allocations: 23.05 kB / 352.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.501, allocations: 7.984 kB / 352.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.501, allocations: 7.875 kB / 352.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.5012, allocations: 128.7 kB / 352.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5012, allocations: 0 / 352.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004426/0.5016, allocations: 70.83 kB / 352.5 MB, free: 11.14 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002181/0.5019, allocations: 114.5 kB / 352.6 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006453/0.5025, allocations: 162.7 kB / 352.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5026, allocations: 0 / 352.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.5029, allocations: 90.45 kB / 352.9 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.5033, allocations: 33.2 kB / 352.9 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.5051, allocations: 0.7233 MB / 353.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.5056, allocations: 0.7518 MB / 354.4 MB, free: 9.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.138e-05/0.5056, allocations: 19.38 kB / 354.4 MB, free: 9.301 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5057, allocations: 0 / 354.4 MB, free: 9.301 MB / 282.7 MB Notification: Performance of Templates: time 0.007448/0.5131, allocations: 3.084 MB / 357.5 MB, free: 6.238 MB / 282.7 MB