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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.728/1.728, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003632, allocations: 12 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07055/0.07095, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2876/0.3586, allocations: 69.47 MB / 341.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.3589, allocations: 69.09 kB / 341.5 MB, free: 4.461 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03395/0.3929, allocations: 8.331 MB / 349.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.66e-06/0.3929, allocations: 4 kB / 349.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.211e-05/0.393, allocations: 8 kB / 349.9 MB, free: 13.38 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.001679/0.3947, allocations: 0.8296 MB / 350.7 MB, free: 12.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3947, allocations: 8.031 kB / 350.7 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.3949, allocations: 71.16 kB / 350.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000648/0.3956, allocations: 364.5 kB / 351.1 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.3956, allocations: 47 kB / 351.2 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3958, allocations: 54.25 kB / 351.2 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.397, allocations: 0.5378 MB / 351.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.397, allocations: 3.938 kB / 351.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.204e-05/0.3971, allocations: 19.94 kB / 351.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.3972, allocations: 15.95 kB / 351.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.3983, allocations: 462.3 kB / 352.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003757/0.4021, allocations: 2.067 MB / 354.3 MB, free: 9.555 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4034, allocations: 0.6346 MB / 355 MB, free: 9.125 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.743e-05/0.4034, allocations: 8.562 kB / 355 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.4035, allocations: 42.81 kB / 355 MB, free: 9.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=60): time 3.648e-06/0.4035, allocations: 0 / 355 MB, free: 9.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.005555/0.4091, allocations: 1.974 MB / 357 MB, free: 7.383 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.4092, allocations: 63.97 kB / 357.1 MB, free: 7.305 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/0.4097, allocations: 326.8 kB / 357.4 MB, free: 7.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.07e-05/0.4098, allocations: 39.14 kB / 357.4 MB, free: 7.008 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.41, allocations: 278.8 kB / 357.7 MB, free: 6.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.4102, allocations: 197.9 kB / 357.9 MB, free: 6.613 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.4102, allocations: 10.31 kB / 357.9 MB, free: 6.613 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4104, allocations: 336.1 kB / 358.2 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/0.4109, allocations: 171.7 kB / 358.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005113/0.4114, allocations: 216.8 kB / 358.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.4119, allocations: 183.4 kB / 358.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-06/0.412, allocations: 3.938 kB / 358.8 MB, free: 5.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001693/0.4137, allocations: 0.6573 MB / 359.4 MB, free: 5.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4137, allocations: 4 kB / 359.4 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.4137, allocations: 0 / 359.4 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.4147, allocations: 259.3 kB / 359.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.4151, allocations: 59.91 kB / 359.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009135/0.4243, allocations: 6.84 MB / 366.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.4247, allocations: 22.14 kB / 366.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.4248, allocations: 19.5 kB / 366.6 MB, free: 14.52 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 () * Number of clocked 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.0003577/0.4252, allocations: 176.9 kB / 366.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.4253, allocations: 55.38 kB / 366.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.4254, allocations: 63.34 kB / 366.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.4255, allocations: 8 kB / 366.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.723e-06/0.4255, allocations: 0 / 366.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.556e-06/0.4255, allocations: 3.984 kB / 366.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.4285, allocations: 1.352 MB / 368.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.837e-06/0.4285, allocations: 0 / 368.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.4289, allocations: 58.58 kB / 368.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/0.43, allocations: 268.5 kB / 368.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.984e-05/0.43, allocations: 14.94 kB / 368.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009068/0.4391, allocations: 6.826 MB / 375.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.777e-06/0.4391, allocations: 4.062 kB / 375.5 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.4417, allocations: 1.042 MB / 376.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.442, allocations: 166 kB / 376.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.628e-05/0.4421, allocations: 11.36 kB / 376.7 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.4425, allocations: 22.94 kB / 376.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.4427, allocations: 52.3 kB / 376.7 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.044e-05/0.4427, allocations: 23.73 kB / 376.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003885/0.4431, allocations: 253.5 kB / 377 MB, free: 5.117 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.4431, allocations: 0 / 377 MB, free: 5.117 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001213/0.4444, allocations: 176.3 kB / 377.2 MB, free: 4.965 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 () * Number of clocked 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.0002147/0.4446, allocations: 122.2 kB / 377.3 MB, free: 4.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.4467, allocations: 1.045 MB / 378.4 MB, free: 3.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.896e-06/0.4468, allocations: 4 kB / 378.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.4484, allocations: 0.8479 MB / 379.2 MB, free: 3.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005937/0.449, allocations: 71.44 kB / 379.3 MB, free: 3.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.4523, allocations: 1.565 MB / 380.8 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.453, allocations: 0.887 MB / 381.7 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.4532, allocations: 31.42 kB / 381.8 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4532, allocations: 0 / 381.8 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of Templates: time 0.02113/0.4743, allocations: 13.28 MB / 395 MB, free: 3.309 MB / 314.7 MB