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.541/1.541, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.46e-05, allocations: 7.984 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2091, allocations: 38.78 MB / 267.6 MB, free: 9.418 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.164/0.3732, allocations: 69.37 MB / 337 MB, free: 3.945 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.3736, allocations: 71.97 kB / 337 MB, free: 3.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03753/0.4111, allocations: 8.365 MB / 345.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.037e-06/0.4112, allocations: 0 / 345.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.4112, allocations: 8 kB / 345.4 MB, free: 11.47 MB / 298.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.001483/0.4127, allocations: 0.7635 MB / 346.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.4128, allocations: 8.031 kB / 346.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.413, allocations: 75.11 kB / 346.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006258/0.4136, allocations: 363.4 kB / 346.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.186e-05/0.4137, allocations: 37.31 kB / 346.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.4138, allocations: 52 kB / 346.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.4149, allocations: 0.5103 MB / 347.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.415, allocations: 4 kB / 347.2 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.64e-05/0.4151, allocations: 20 kB / 347.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.4151, allocations: 12 kB / 347.2 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.4161, allocations: 415.8 kB / 347.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003914/0.42, allocations: 2.073 MB / 349.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.4215, allocations: 0.6066 MB / 350.3 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007445/0.4223, allocations: 377.9 kB / 350.7 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.4224, allocations: 4.562 kB / 350.7 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.4224, allocations: 39.12 kB / 350.7 MB, free: 5.887 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 4.298e-06/0.4224, allocations: 0 / 350.7 MB, free: 5.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.002981/0.4254, allocations: 1.256 MB / 352 MB, free: 4.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.4255, allocations: 55.97 kB / 352.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.426, allocations: 330.8 kB / 352.4 MB, free: 4.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.4261, allocations: 33.7 kB / 352.4 MB, free: 4.129 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.4263, allocations: 271.6 kB / 352.7 MB, free: 3.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002052/0.4265, allocations: 209.1 kB / 352.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.4265, allocations: 12 kB / 352.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4267, allocations: 330.8 kB / 353.2 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.4271, allocations: 149.1 kB / 353.4 MB, free: 3.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/0.4276, allocations: 195.8 kB / 353.5 MB, free: 2.969 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003992/0.428, allocations: 159.2 kB / 353.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.577e-06/0.428, allocations: 0 / 353.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001525/0.4295, allocations: 0.6074 MB / 354.3 MB, free: 2.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4296, allocations: 7.984 kB / 354.3 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.466e-06/0.4296, allocations: 0 / 354.3 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009869/0.4306, allocations: 255.2 kB / 354.6 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.431, allocations: 63.89 kB / 354.6 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1824/0.6134, allocations: 6.756 MB / 361.4 MB, free: 73.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.6138, allocations: 23.62 kB / 361.4 MB, free: 73.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.6139, allocations: 16.89 kB / 361.4 MB, free: 73.71 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.000135/0.614, allocations: 128.9 kB / 361.6 MB, free: 73.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.6142, allocations: 53.58 kB / 361.6 MB, free: 73.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.6143, allocations: 69.94 kB / 361.7 MB, free: 73.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.119e-06/0.6143, allocations: 7.312 kB / 361.7 MB, free: 73.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.539e-06/0.6143, allocations: 5.391 kB / 361.7 MB, free: 73.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.549e-06/0.6144, allocations: 3.562 kB / 361.7 MB, free: 73.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/0.6169, allocations: 1.301 MB / 363 MB, free: 73.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.995e-06/0.6169, allocations: 0 / 363 MB, free: 73.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.6173, allocations: 61.62 kB / 363 MB, free: 73.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008247/0.6181, allocations: 252.4 kB / 363.3 MB, free: 73.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.6182, allocations: 13.7 kB / 363.3 MB, free: 73.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006211/0.6244, allocations: 6.768 MB / 370.1 MB, free: 67.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.028e-06/0.6245, allocations: 3.719 kB / 370.1 MB, free: 67.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.6263, allocations: 0.9719 MB / 371.1 MB, free: 66.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/0.6266, allocations: 168 kB / 371.2 MB, free: 66.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-05/0.6267, allocations: 11.94 kB / 371.2 MB, free: 66.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.6271, allocations: 22.38 kB / 371.2 MB, free: 66.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.6272, allocations: 46.69 kB / 371.3 MB, free: 66.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.6273, allocations: 20.27 kB / 371.3 MB, free: 66.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003031/0.6276, allocations: 262.5 kB / 371.6 MB, free: 66.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.05e-07/0.6276, allocations: 0 / 371.6 MB, free: 66.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0011/0.6287, allocations: 172 kB / 371.7 MB, free: 66.6 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.0001633/0.6289, allocations: 117.9 kB / 371.9 MB, free: 66.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.6304, allocations: 0.9884 MB / 372.8 MB, free: 65.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.973e-06/0.6304, allocations: 0 / 372.8 MB, free: 65.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.6316, allocations: 0.8135 MB / 373.7 MB, free: 65.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.6321, allocations: 76.39 kB / 373.7 MB, free: 65.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.6343, allocations: 1.031 MB / 374.8 MB, free: 64.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.6347, allocations: 0.8913 MB / 375.7 MB, free: 63.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.6348, allocations: 26.38 kB / 375.7 MB, free: 63.94 MB / 298.7 MB Notification: Performance of SimCode: time 1.996e-06/0.6349, allocations: 0 / 375.7 MB, free: 63.94 MB / 298.7 MB Notification: Performance of Templates: time 0.01577/0.6506, allocations: 13.28 MB / 389 MB, free: 53.28 MB / 298.7 MB