Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 0.9838/0.9838, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.768e-05/2.776e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.08957, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.2773, allocations: 35.47 MB / 208.8 MB, free: 7.031 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.2776, allocations: 62.98 kB / 208.8 MB, free: 7.031 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01358/0.2912, allocations: 3.843 MB / 212.7 MB, free: 6.453 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.07e-06/0.2912, allocations: 0 / 212.7 MB, free: 6.453 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.2912, allocations: 4.062 kB / 212.7 MB, free: 6.453 MB / 170.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.000616/0.2919, allocations: 489.1 kB / 213.1 MB, free: 6.047 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2919, allocations: 12.88 kB / 213.2 MB, free: 6.043 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/0.292, allocations: 24.25 kB / 213.2 MB, free: 6.031 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.2923, allocations: 233.5 kB / 213.4 MB, free: 5.809 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.2923, allocations: 7.281 kB / 213.4 MB, free: 5.809 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.2923, allocations: 11.5 kB / 213.4 MB, free: 5.809 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003384/0.2927, allocations: 134.3 kB / 213.6 MB, free: 5.805 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.2931, allocations: 194.6 kB / 213.7 MB, free: 5.75 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.2931, allocations: 0 / 213.7 MB, free: 5.75 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.2932, allocations: 0 / 213.7 MB, free: 5.75 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.491e-06/0.2932, allocations: 6.188 kB / 213.8 MB, free: 5.75 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2945, allocations: 0.8127 MB / 214.6 MB, free: 5.309 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.2948, allocations: 132.5 kB / 214.7 MB, free: 5.285 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.295, allocations: 83.75 kB / 214.8 MB, free: 5.273 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.2951, allocations: 3.75 kB / 214.8 MB, free: 5.273 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/0.2951, allocations: 34.31 kB / 214.8 MB, free: 5.234 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.951e-06/0.2951, allocations: 0 / 214.8 MB, free: 5.234 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007059/0.2958, allocations: 206.2 kB / 215 MB, free: 5.176 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.72e-05/0.2959, allocations: 55.28 kB / 215.1 MB, free: 5.113 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.296, allocations: 161 kB / 215.2 MB, free: 5.008 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.2961, allocations: 25.7 kB / 215.3 MB, free: 4.977 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.2961, allocations: 216.8 kB / 215.5 MB, free: 4.793 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.2962, allocations: 61.73 kB / 215.5 MB, free: 4.754 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.2962, allocations: 0 / 215.5 MB, free: 4.754 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.2963, allocations: 321.7 kB / 215.8 MB, free: 4.441 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.2964, allocations: 35.69 kB / 215.9 MB, free: 4.438 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2965, allocations: 84.39 kB / 216 MB, free: 4.395 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.2968, allocations: 65.47 kB / 216 MB, free: 4.391 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.984e-06/0.2968, allocations: 3.812 kB / 216 MB, free: 4.391 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006311/0.2975, allocations: 225.1 kB / 216.2 MB, free: 4.328 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2975, allocations: 6.547 kB / 216.2 MB, free: 4.328 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.198e-06/0.2975, allocations: 3.875 kB / 216.3 MB, free: 4.328 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006194/0.2981, allocations: 105.4 kB / 216.4 MB, free: 4.316 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.2984, allocations: 39.81 kB / 216.4 MB, free: 4.312 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005702/0.2989, allocations: 0.622 MB / 217 MB, free: 3.793 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.2992, allocations: 25.41 kB / 217 MB, free: 3.777 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.2992, allocations: 7.219 kB / 217 MB, free: 3.777 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(6000.0, min(6000.0, 6000.0)) start = 293.15 unit = "K" nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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 () * 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.0001525/0.2994, allocations: 124.8 kB / 217.2 MB, free: 3.66 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.596e-05/0.2994, allocations: 18.94 kB / 217.2 MB, free: 3.652 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000571/0.3, allocations: 208.2 kB / 217.4 MB, free: 3.594 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.036e-06/0.3, allocations: 3.188 kB / 217.4 MB, free: 3.594 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.724e-06/0.3, allocations: 0 / 217.4 MB, free: 3.594 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.816e-06/0.3001, allocations: 6.516 kB / 217.4 MB, free: 3.59 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000973/0.301, allocations: 0.5452 MB / 217.9 MB, free: 3.293 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.839e-06/0.3011, allocations: 4.031 kB / 218 MB, free: 3.289 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.3013, allocations: 29.17 kB / 218 MB, free: 3.289 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005858/0.3019, allocations: 109.6 kB / 218.1 MB, free: 3.277 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.3019, allocations: 5.281 kB / 218.1 MB, free: 3.273 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005387/0.3025, allocations: 0.647 MB / 218.7 MB, free: 2.746 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.409e-06/0.3025, allocations: 0 / 218.7 MB, free: 2.746 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/0.3032, allocations: 393.1 kB / 219.1 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.157e-05/0.3033, allocations: 107.3 kB / 219.2 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.3033, allocations: 0 / 219.2 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.3036, allocations: 9.922 kB / 219.2 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.3036, allocations: 13.42 kB / 219.3 MB, free: 2.453 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3037, allocations: 3.844 kB / 219.3 MB, free: 2.453 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.3e-05/0.3038, allocations: 128.1 kB / 219.4 MB, free: 2.379 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.997e-06/0.3038, allocations: 0 / 219.4 MB, free: 2.379 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004051/0.3042, allocations: 69.97 kB / 219.4 MB, free: 2.359 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete 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.0001377/0.3044, allocations: 113.1 kB / 219.6 MB, free: 2.266 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003647/0.3047, allocations: 133.8 kB / 219.7 MB, free: 2.254 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.485e-06/0.3048, allocations: 0 / 219.7 MB, free: 2.254 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3049, allocations: 71.92 kB / 219.8 MB, free: 2.25 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.3053, allocations: 39.95 kB / 219.8 MB, free: 2.246 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007328/0.3061, allocations: 405.4 kB / 220.2 MB, free: 1.98 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.3066, allocations: 0.7443 MB / 220.9 MB, free: 17.28 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.459e-05/0.3066, allocations: 17.03 kB / 221 MB, free: 17.28 MB / 186.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3067, allocations: 0 / 221 MB, free: 17.28 MB / 186.7 MB Notification: Performance of Templates: time 0.00515/0.3118, allocations: 3.08 MB / 224 MB, free: 16.06 MB / 186.7 MB