Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 1.003/1.003, allocations: 111.2 MB / 127.3 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002645, allocations: 4 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05585/0.05615, allocations: 25.17 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2315/0.2877, allocations: 36.22 MB / 220.3 MB, free: 6.09 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.2881, allocations: 64.31 kB / 220.3 MB, free: 6.082 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01558/0.3037, allocations: 3.879 MB / 224.2 MB, free: 4.547 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3037, allocations: 0 / 224.2 MB, free: 4.547 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.3038, allocations: 3.875 kB / 224.2 MB, free: 4.547 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.000894/0.3047, allocations: 0.5099 MB / 224.7 MB, free: 4.086 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3047, allocations: 11.62 kB / 224.7 MB, free: 4.086 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.37e-05/0.3048, allocations: 22.69 kB / 224.7 MB, free: 4.074 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.3051, allocations: 227.3 kB / 225 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.3052, allocations: 18.19 kB / 225 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.3052, allocations: 18.41 kB / 225 MB, free: 3.844 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.3058, allocations: 233 kB / 225.2 MB, free: 3.754 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.3058, allocations: 3.906 kB / 225.2 MB, free: 3.75 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.3059, allocations: 14.45 kB / 225.2 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3059, allocations: 3.906 kB / 225.3 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004849/0.3064, allocations: 164 kB / 225.4 MB, free: 3.719 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.3083, allocations: 0.8528 MB / 226.3 MB, free: 3.137 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004379/0.3088, allocations: 161.5 kB / 226.4 MB, free: 3.09 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.3088, allocations: 0 / 226.4 MB, free: 3.09 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.3089, allocations: 34.53 kB / 226.5 MB, free: 3.051 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 1.663e-06/0.3089, allocations: 0 / 226.5 MB, free: 3.051 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.00188/0.3108, allocations: 426.6 kB / 226.9 MB, free: 2.84 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.3108, allocations: 59.25 kB / 226.9 MB, free: 2.773 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3111, allocations: 178 kB / 227.1 MB, free: 2.656 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.3111, allocations: 29.2 kB / 227.1 MB, free: 2.625 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/0.3112, allocations: 215.6 kB / 227.3 MB, free: 2.438 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/0.3113, allocations: 69.23 kB / 227.4 MB, free: 2.387 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.3113, allocations: 3.438 kB / 227.4 MB, free: 2.387 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.3114, allocations: 322.4 kB / 227.7 MB, free: 2.07 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.3116, allocations: 47.92 kB / 227.8 MB, free: 2.062 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.3118, allocations: 97.92 kB / 227.9 MB, free: 2.008 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.312, allocations: 62.39 kB / 227.9 MB, free: 2.004 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.312, allocations: 0 / 227.9 MB, free: 2.004 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007314/0.3128, allocations: 249.3 kB / 228.2 MB, free: 1.922 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3128, allocations: 7.891 kB / 228.2 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3128, allocations: 0 / 228.2 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.3149, allocations: 215.3 kB / 228.4 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.3153, allocations: 44.19 kB / 228.4 MB, free: 1.832 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005896/0.3159, allocations: 0.6087 MB / 229 MB, free: 1.301 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.3162, allocations: 26.95 kB / 229.1 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.3162, allocations: 12.7 kB / 229.1 MB, free: 1.281 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" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" fixed = true ) "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 () * 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.0003247/0.3165, allocations: 155.7 kB / 229.2 MB, free: 1.145 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.3166, allocations: 15.5 kB / 229.3 MB, free: 1.137 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000734/0.3174, allocations: 241.1 kB / 229.5 MB, free: 1.051 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3174, allocations: 1.219 kB / 229.5 MB, free: 1.051 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3174, allocations: 1.156 kB / 229.5 MB, free: 1.051 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3174, allocations: 0 / 229.5 MB, free: 1.051 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004772/0.3179, allocations: 301 kB / 229.8 MB, free: 0.8086 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.3179, allocations: 0 / 229.8 MB, free: 0.8086 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.3182, allocations: 30.42 kB / 229.8 MB, free: 0.8008 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.3202, allocations: 224.5 kB / 230 MB, free: 0.7227 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.3203, allocations: 3.984 kB / 230 MB, free: 0.7188 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005402/0.3209, allocations: 0.6236 MB / 230.7 MB, free: 184 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3209, allocations: 3.953 kB / 230.7 MB, free: 180 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008106/0.3217, allocations: 385.1 kB / 231 MB, free: 4 kB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3219, allocations: 104.3 kB / 231.1 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.277e-05/0.322, allocations: 15.83 kB / 231.2 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3223, allocations: 7.531 kB / 231.2 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.828e-05/0.3223, allocations: 19.53 kB / 231.2 MB, free: 15.88 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.3224, allocations: 3.844 kB / 231.2 MB, free: 15.88 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001662/0.3225, allocations: 138.5 kB / 231.3 MB, free: 15.79 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3226, allocations: 0 / 231.3 MB, free: 15.79 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005278/0.3231, allocations: 71.84 kB / 231.4 MB, free: 15.77 MB / 186.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.0002322/0.3233, allocations: 125.7 kB / 231.5 MB, free: 15.66 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006859/0.324, allocations: 156.8 kB / 231.7 MB, free: 15.64 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3241, allocations: 0 / 231.7 MB, free: 15.64 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003209/0.3244, allocations: 92.95 kB / 231.8 MB, free: 15.62 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.325, allocations: 42.61 kB / 231.8 MB, free: 15.61 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.3267, allocations: 0.7031 MB / 232.5 MB, free: 14.99 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.3272, allocations: 0.7517 MB / 233.3 MB, free: 14.21 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.644e-05/0.3273, allocations: 15.44 kB / 233.3 MB, free: 14.2 MB / 186.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3273, allocations: 0 / 233.3 MB, free: 14.2 MB / 186.7 MB Notification: Performance of Templates: time 0.008265/0.3356, allocations: 3.127 MB / 236.4 MB, free: 11.1 MB / 186.7 MB