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 0.9545/0.9545, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002535, allocations: 4 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04528/0.04556, allocations: 25.17 MB / 183.5 MB, free: 5.984 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.2766, allocations: 36.69 MB / 220.2 MB, free: 5.992 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.2769, allocations: 64.94 kB / 220.3 MB, free: 5.984 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0706/0.3476, allocations: 8.166 MB / 228.4 MB, free: 2.812 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.457e-06/0.3476, allocations: 0 / 228.4 MB, free: 2.812 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.078e-05/0.3477, allocations: 11.25 kB / 228.4 MB, free: 2.809 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001276/0.3489, allocations: 0.8226 MB / 229.3 MB, free: 1.973 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.349, allocations: 12.03 kB / 229.3 MB, free: 1.961 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3491, allocations: 67.16 kB / 229.3 MB, free: 1.895 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.3496, allocations: 368.8 kB / 229.7 MB, free: 1.535 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/0.3497, allocations: 39.75 kB / 229.7 MB, free: 1.512 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-05/0.3498, allocations: 50.31 kB / 229.8 MB, free: 1.48 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.3508, allocations: 0.5489 MB / 230.3 MB, free: 1.066 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3508, allocations: 0 / 230.3 MB, free: 1.066 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.3509, allocations: 18.25 kB / 230.3 MB, free: 1.062 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3509, allocations: 12 kB / 230.4 MB, free: 1.051 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.352, allocations: 472.7 kB / 230.8 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003921/0.356, allocations: 2.067 MB / 232.9 MB, free: 14.99 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3572, allocations: 0.6392 MB / 233.5 MB, free: 14.54 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.922e-05/0.3573, allocations: 8.562 kB / 233.5 MB, free: 14.54 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.3573, allocations: 47 kB / 233.6 MB, free: 14.49 MB / 186.7 MB Notification: Performance of pre-optimization done (n=60): time 3.187e-06/0.3573, allocations: 0 / 233.6 MB, free: 14.49 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.005536/0.3629, allocations: 1.976 MB / 235.6 MB, free: 12.8 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.363, allocations: 59.97 kB / 235.6 MB, free: 12.73 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005045/0.3635, allocations: 319.4 kB / 235.9 MB, free: 12.47 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.3636, allocations: 36.27 kB / 236 MB, free: 12.44 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.3638, allocations: 275.7 kB / 236.2 MB, free: 12.22 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.364, allocations: 207.9 kB / 236.4 MB, free: 12.04 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.364, allocations: 7.812 kB / 236.4 MB, free: 12.04 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3642, allocations: 332.7 kB / 236.8 MB, free: 11.71 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004673/0.3647, allocations: 170.5 kB / 236.9 MB, free: 11.61 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00067/0.3654, allocations: 221.2 kB / 237.1 MB, free: 11.45 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005428/0.3659, allocations: 174.9 kB / 237.3 MB, free: 11.35 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.213e-06/0.366, allocations: 0 / 237.3 MB, free: 11.35 MB / 186.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001674/0.3676, allocations: 0.6443 MB / 238 MB, free: 10.88 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3677, allocations: 11.95 kB / 238 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.562e-06/0.3677, allocations: 0 / 238 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009953/0.3687, allocations: 256.2 kB / 238.2 MB, free: 10.66 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.3691, allocations: 67.33 kB / 238.3 MB, free: 10.6 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009225/0.3784, allocations: 6.842 MB / 245.1 MB, free: 3.973 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004189/0.3788, allocations: 26.47 kB / 245.2 MB, free: 3.957 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.167e-05/0.3789, allocations: 15.8 kB / 245.2 MB, free: 3.945 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" fixed = true ) "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 () * 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.0004089/0.3793, allocations: 178.1 kB / 245.3 MB, free: 3.797 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.3795, allocations: 51.34 kB / 245.4 MB, free: 3.746 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.3796, allocations: 74.7 kB / 245.5 MB, free: 3.715 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.344e-06/0.3796, allocations: 4 kB / 245.5 MB, free: 3.711 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.3796, allocations: 3.953 kB / 245.5 MB, free: 3.707 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.537e-06/0.3797, allocations: 4 kB / 245.5 MB, free: 3.703 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003033/0.3827, allocations: 1.343 MB / 246.8 MB, free: 2.363 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.424e-06/0.3827, allocations: 0 / 246.8 MB, free: 2.363 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003934/0.3832, allocations: 67.89 kB / 246.9 MB, free: 2.297 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000977/0.3841, allocations: 247.2 kB / 247.1 MB, free: 2.043 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.3842, allocations: 12 kB / 247.1 MB, free: 2.031 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009448/0.3937, allocations: 6.848 MB / 254 MB, free: 10.65 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.92e-06/0.3937, allocations: 0 / 254 MB, free: 10.65 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.3974, allocations: 1.041 MB / 255 MB, free: 9.578 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.3979, allocations: 160.5 kB / 255.2 MB, free: 9.402 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3981, allocations: 15.94 kB / 255.2 MB, free: 9.387 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005861/0.3987, allocations: 23.94 kB / 255.2 MB, free: 9.363 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.399, allocations: 60.48 kB / 255.3 MB, free: 9.305 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-05/0.3991, allocations: 12 kB / 255.3 MB, free: 9.293 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006953/0.3998, allocations: 263.2 kB / 255.6 MB, free: 9.039 MB / 202.7 MB Notification: Performance of sort global known variables: time 9.65e-07/0.3998, allocations: 0 / 255.6 MB, free: 9.039 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.00176/0.4016, allocations: 172 kB / 255.7 MB, free: 8.871 MB / 202.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.0002842/0.4019, allocations: 115.2 kB / 255.8 MB, free: 8.75 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.4052, allocations: 1.042 MB / 256.9 MB, free: 7.656 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.694e-06/0.4052, allocations: 0 / 256.9 MB, free: 7.656 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002577/0.4078, allocations: 0.8452 MB / 257.7 MB, free: 6.762 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.4092, allocations: 110.1 kB / 257.8 MB, free: 6.656 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004775/0.414, allocations: 1.48 MB / 259.3 MB, free: 5.145 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000755/0.4148, allocations: 0.8986 MB / 260.2 MB, free: 4.219 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.415, allocations: 31.42 kB / 260.2 MB, free: 4.188 MB / 202.7 MB Notification: Performance of SimCode: time 1.876e-06/0.415, allocations: 0 / 260.2 MB, free: 4.188 MB / 202.7 MB Notification: Performance of Templates: time 0.0328/0.4478, allocations: 13.3 MB / 273.5 MB, free: 6.883 MB / 218.7 MB