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.Rectifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 171.3 MB / 179.2 MB, free: 7.508 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.107e-05, allocations: 11.94 kB / 222.5 MB, free: 8.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.0697, allocations: 38.75 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2807/0.3505, allocations: 68.72 MB / 330 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.3507, allocations: 74.27 kB / 330.1 MB, free: 3.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03254/0.3833, allocations: 8.263 MB / 338.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.921e-06/0.3833, allocations: 0 / 338.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.267e-05/0.3834, allocations: 12 kB / 338.3 MB, free: 12.6 MB / 282.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.001469/0.3849, allocations: 0.7526 MB / 339.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3849, allocations: 8.031 kB / 339.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.3851, allocations: 75.11 kB / 339.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006144/0.3857, allocations: 364.5 kB / 339.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.3858, allocations: 16 kB / 339.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.483e-05/0.3859, allocations: 32 kB / 339.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009145/0.3868, allocations: 374.6 kB / 339.9 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009674/0.3878, allocations: 451.5 kB / 340.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3878, allocations: 7.938 kB / 340.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/0.3879, allocations: 3.984 kB / 340.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.3879, allocations: 15.95 kB / 340.4 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003728/0.3917, allocations: 1.956 MB / 342.4 MB, free: 9.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3927, allocations: 0.5832 MB / 342.9 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006413/0.3934, allocations: 354.3 kB / 343.3 MB, free: 8.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.3935, allocations: 4.562 kB / 343.3 MB, free: 8.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.3935, allocations: 46.47 kB / 343.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=60): time 4.22e-06/0.3935, allocations: 3.828 kB / 343.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.002807/0.3964, allocations: 1.147 MB / 344.5 MB, free: 7.457 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.3964, allocations: 62.22 kB / 344.6 MB, free: 7.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.3969, allocations: 279.8 kB / 344.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.3969, allocations: 25.7 kB / 344.9 MB, free: 7.133 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.3971, allocations: 285.2 kB / 345.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.3973, allocations: 185.6 kB / 345.3 MB, free: 6.734 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.3974, allocations: 0 / 345.3 MB, free: 6.734 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3976, allocations: 337.6 kB / 345.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.3979, allocations: 141.1 kB / 345.8 MB, free: 6.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.3983, allocations: 179.9 kB / 346 MB, free: 6.211 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/0.3987, allocations: 149.1 kB / 346.1 MB, free: 6.117 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.164e-06/0.3987, allocations: 4 kB / 346.1 MB, free: 6.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001374/0.4001, allocations: 0.5513 MB / 346.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4001, allocations: 7.938 kB / 346.7 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.842e-06/0.4001, allocations: 0 / 346.7 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009475/0.4011, allocations: 243.1 kB / 346.9 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/0.4015, allocations: 66.12 kB / 347 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008478/0.41, allocations: 6.512 MB / 353.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.4104, allocations: 12.09 kB / 353.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-05/0.4105, allocations: 19.98 kB / 353.5 MB, free: 14.77 MB / 298.7 MB 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.0001712/0.4107, allocations: 108.9 kB / 353.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.4108, allocations: 47.44 kB / 353.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.411, allocations: 61.05 kB / 353.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.411, allocations: 11.95 kB / 353.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.274e-06/0.411, allocations: 0.5625 kB / 353.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4111, allocations: 7.984 kB / 353.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.4137, allocations: 1.181 MB / 354.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.533e-06/0.4137, allocations: 4 kB / 354.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.4141, allocations: 51.97 kB / 355 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009527/0.4151, allocations: 255.1 kB / 355.2 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.4152, allocations: 3.984 kB / 355.2 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008629/0.4238, allocations: 6.523 MB / 361.8 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.629e-06/0.4239, allocations: 4.031 kB / 361.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.4259, allocations: 0.908 MB / 362.7 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.4263, allocations: 160.5 kB / 362.8 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.471e-05/0.4264, allocations: 4 kB / 362.8 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.4267, allocations: 11.98 kB / 362.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.4269, allocations: 52.48 kB / 362.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.608e-05/0.427, allocations: 12 kB / 362.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003261/0.4273, allocations: 216.6 kB / 363.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.4273, allocations: 0 / 363.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001181/0.4285, allocations: 152 kB / 363.3 MB, free: 4.422 MB / 298.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.0002083/0.4287, allocations: 115.1 kB / 363.4 MB, free: 4.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.4305, allocations: 0.9335 MB / 364.3 MB, free: 3.328 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4306, allocations: 0 / 364.3 MB, free: 3.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.4319, allocations: 0.77 MB / 365.1 MB, free: 2.516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005314/0.4325, allocations: 53.62 kB / 365.1 MB, free: 2.461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.4351, allocations: 0.9952 MB / 366.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006936/0.4358, allocations: 0.8906 MB / 367 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.4359, allocations: 27.42 kB / 367 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.436, allocations: 0 / 367 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of Templates: time 0.02097/0.4569, allocations: 13.05 MB / 380.1 MB, free: 3.449 MB / 314.7 MB