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.Rectifier.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.023/1.023, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.256e-05, allocations: 4 kB / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1368, allocations: 25.15 MB / 179.4 MB, free: 0.8242 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0562/0.193, allocations: 36.6 MB / 216 MB, free: 12.53 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004757/0.1936, allocations: 63.97 kB / 216.1 MB, free: 12.46 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03694/0.2306, allocations: 8.186 MB / 224.3 MB, free: 4.266 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2306, allocations: 4 kB / 224.3 MB, free: 4.262 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.357e-05/0.2307, allocations: 11.98 kB / 224.3 MB, free: 4.25 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001522/0.2322, allocations: 0.7635 MB / 225 MB, free: 3.441 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2323, allocations: 8.031 kB / 225.1 MB, free: 3.434 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.2324, allocations: 71.16 kB / 225.1 MB, free: 3.363 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006373/0.2331, allocations: 367.3 kB / 225.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.2332, allocations: 37.31 kB / 225.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.2333, allocations: 52 kB / 225.6 MB, free: 2.879 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.2344, allocations: 0.5142 MB / 226.1 MB, free: 2.34 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.2345, allocations: 0 / 226.1 MB, free: 2.34 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.2345, allocations: 24 kB / 226.1 MB, free: 2.316 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.2346, allocations: 12 kB / 226.1 MB, free: 2.305 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.2356, allocations: 407.9 kB / 226.5 MB, free: 1.906 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.2396, allocations: 2.077 MB / 228.6 MB, free: 15.74 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.2408, allocations: 0.6153 MB / 229.2 MB, free: 15.1 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007365/0.2416, allocations: 373.9 kB / 229.6 MB, free: 14.73 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.2416, allocations: 8.562 kB / 229.6 MB, free: 14.72 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.2417, allocations: 39.12 kB / 229.6 MB, free: 14.68 MB / 202.7 MB Notification: Performance of pre-optimization done (n=60): time 4.051e-06/0.2417, allocations: 0 / 229.6 MB, free: 14.68 MB / 202.7 MB Notification: Performance of matching and sorting (n=61): time 0.003027/0.2447, allocations: 1.248 MB / 230.9 MB, free: 13.36 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.2448, allocations: 63.91 kB / 230.9 MB, free: 13.29 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.2454, allocations: 318.9 kB / 231.2 MB, free: 12.96 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.786e-05/0.2454, allocations: 37.7 kB / 231.3 MB, free: 12.92 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.2457, allocations: 279.6 kB / 231.6 MB, free: 12.65 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.2459, allocations: 205 kB / 231.8 MB, free: 12.45 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.2459, allocations: 8 kB / 231.8 MB, free: 12.44 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.2461, allocations: 330.8 kB / 232.1 MB, free: 12.11 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.2465, allocations: 153.1 kB / 232.2 MB, free: 11.96 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004238/0.247, allocations: 187.9 kB / 232.4 MB, free: 11.77 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.2474, allocations: 160.4 kB / 232.6 MB, free: 11.61 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.827e-06/0.2474, allocations: 4 kB / 232.6 MB, free: 11.61 MB / 202.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001519/0.2489, allocations: 0.5918 MB / 233.2 MB, free: 11 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.249, allocations: 10.19 kB / 233.2 MB, free: 10.99 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.249, allocations: 0 / 233.2 MB, free: 10.99 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/0.25, allocations: 255.2 kB / 233.4 MB, free: 10.73 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.2504, allocations: 63.91 kB / 233.5 MB, free: 10.66 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009027/0.2595, allocations: 6.761 MB / 240.3 MB, free: 3.367 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004728/0.26, allocations: 20.03 kB / 240.3 MB, free: 3.348 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-05/0.26, allocations: 16 kB / 240.3 MB, free: 3.332 MB / 202.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.2603, allocations: 137.1 kB / 240.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.2604, allocations: 51.34 kB / 240.5 MB, free: 3.141 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.2606, allocations: 65.03 kB / 240.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.2606, allocations: 11.95 kB / 240.6 MB, free: 3.059 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.141e-06/0.2607, allocations: 0 / 240.6 MB, free: 3.059 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.2607, allocations: 3.984 kB / 240.6 MB, free: 3.055 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.2635, allocations: 1.295 MB / 241.8 MB, free: 1.691 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.2635, allocations: 0 / 241.8 MB, free: 1.691 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.2639, allocations: 67.89 kB / 241.9 MB, free: 1.625 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009521/0.2649, allocations: 259 kB / 242.2 MB, free: 1.359 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.265, allocations: 12 kB / 242.2 MB, free: 1.348 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008937/0.2739, allocations: 6.765 MB / 248.9 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.274, allocations: 0 / 248.9 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.2762, allocations: 0.9665 MB / 249.9 MB, free: 9.051 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.2765, allocations: 160.5 kB / 250.1 MB, free: 8.875 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.852e-05/0.2766, allocations: 15.95 kB / 250.1 MB, free: 8.859 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.277, allocations: 16 kB / 250.1 MB, free: 8.844 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.2772, allocations: 60.42 kB / 250.2 MB, free: 8.785 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.2772, allocations: 15.98 kB / 250.2 MB, free: 8.77 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0004007/0.2776, allocations: 261.2 kB / 250.4 MB, free: 8.516 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.08e-07/0.2777, allocations: 480 / 250.4 MB, free: 8.516 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001165/0.2788, allocations: 172 kB / 250.6 MB, free: 8.348 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002036/0.2791, allocations: 119.2 kB / 250.7 MB, free: 8.223 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.281, allocations: 0.9898 MB / 251.7 MB, free: 7.18 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.157e-06/0.281, allocations: 0 / 251.7 MB, free: 7.18 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.2824, allocations: 0.8097 MB / 252.5 MB, free: 6.316 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007088/0.2832, allocations: 97.44 kB / 252.6 MB, free: 6.223 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.2854, allocations: 0.9505 MB / 253.6 MB, free: 5.238 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006656/0.2861, allocations: 0.8907 MB / 254.4 MB, free: 4.32 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2862, allocations: 27.44 kB / 254.5 MB, free: 4.293 MB / 218.7 MB Notification: Performance of SimCode: time 1.828e-06/0.2862, allocations: 0 / 254.5 MB, free: 4.293 MB / 218.7 MB Notification: Performance of Templates: time 0.139/0.4252, allocations: 13.29 MB / 267.8 MB, free: 62.73 MB / 218.7 MB