Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.107/1.107, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002636, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06426/0.06455, allocations: 25.17 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2261/0.2907, allocations: 36.67 MB / 220.7 MB, free: 6.004 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.291, allocations: 67.59 kB / 220.8 MB, free: 5.996 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03277/0.3238, allocations: 8.167 MB / 228.9 MB, free: 2.836 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3239, allocations: 0 / 228.9 MB, free: 2.836 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.3239, allocations: 11.97 kB / 229 MB, free: 2.836 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.001929/0.3259, allocations: 0.8304 MB / 229.8 MB, free: 2.023 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3259, allocations: 8.031 kB / 229.8 MB, free: 2.016 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.3261, allocations: 71.16 kB / 229.9 MB, free: 1.945 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006029/0.3267, allocations: 368.8 kB / 230.2 MB, free: 1.582 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.3268, allocations: 39.62 kB / 230.3 MB, free: 1.562 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3269, allocations: 54.25 kB / 230.3 MB, free: 1.527 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.3283, allocations: 0.5474 MB / 230.9 MB, free: 1.113 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.3283, allocations: 0 / 230.9 MB, free: 1.113 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.824e-05/0.3284, allocations: 21.81 kB / 230.9 MB, free: 1.109 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.3284, allocations: 16 kB / 230.9 MB, free: 1.094 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.3298, allocations: 459.2 kB / 231.3 MB, free: 0.7852 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004395/0.3342, allocations: 2.07 MB / 233.4 MB, free: 15.04 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.3358, allocations: 0.641 MB / 234.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-05/0.3359, allocations: 4.562 kB / 234.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.336, allocations: 43 kB / 234.1 MB, free: 14.55 MB / 186.7 MB Notification: Performance of pre-optimization done (n=60): time 6.252e-06/0.336, allocations: 3.984 kB / 234.1 MB, free: 14.54 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.007082/0.3431, allocations: 1.977 MB / 236.1 MB, free: 12.86 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3432, allocations: 59.97 kB / 236.1 MB, free: 12.79 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006826/0.3439, allocations: 366.7 kB / 236.5 MB, free: 12.49 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.046e-05/0.344, allocations: 34.7 kB / 236.5 MB, free: 12.46 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.3442, allocations: 273.9 kB / 236.8 MB, free: 12.24 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.3445, allocations: 201 kB / 237 MB, free: 12.07 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.219e-05/0.3445, allocations: 13.38 kB / 237 MB, free: 12.06 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3447, allocations: 337.6 kB / 237.3 MB, free: 11.73 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.3453, allocations: 173 kB / 237.5 MB, free: 11.62 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006259/0.346, allocations: 212.4 kB / 237.7 MB, free: 11.47 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006306/0.3466, allocations: 188.8 kB / 237.9 MB, free: 11.36 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3466, allocations: 0 / 237.9 MB, free: 11.36 MB / 186.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002095/0.3487, allocations: 0.6418 MB / 238.5 MB, free: 10.89 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.3488, allocations: 7.953 kB / 238.6 MB, free: 10.88 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3488, allocations: 0 / 238.6 MB, free: 10.88 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.3501, allocations: 259.1 kB / 238.8 MB, free: 10.68 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.3507, allocations: 63.89 kB / 238.9 MB, free: 10.61 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.3632, allocations: 6.843 MB / 245.7 MB, free: 3.988 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007414/0.364, allocations: 26.08 kB / 245.7 MB, free: 3.973 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.3641, allocations: 15.5 kB / 245.8 MB, free: 3.961 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.0005733/0.3647, allocations: 180.5 kB / 245.9 MB, free: 3.809 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.3649, allocations: 51.34 kB / 246 MB, free: 3.758 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.3651, allocations: 62.22 kB / 246 MB, free: 3.738 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.3652, allocations: 11.94 kB / 246.1 MB, free: 3.727 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.91e-05/0.3652, allocations: 3.953 kB / 246.1 MB, free: 3.723 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3652, allocations: 3.984 kB / 246.1 MB, free: 3.719 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005417/0.3707, allocations: 1.345 MB / 247.4 MB, free: 2.359 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.3707, allocations: 3.984 kB / 247.4 MB, free: 2.355 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008123/0.3716, allocations: 59.97 kB / 247.5 MB, free: 2.297 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.3734, allocations: 259.3 kB / 247.7 MB, free: 2.031 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.064e-05/0.3735, allocations: 12 kB / 247.7 MB, free: 2.02 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0138/0.3873, allocations: 6.84 MB / 254.6 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3874, allocations: 4.031 kB / 254.6 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.3919, allocations: 1.041 MB / 255.6 MB, free: 9.57 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005191/0.3924, allocations: 160.5 kB / 255.8 MB, free: 9.395 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.3926, allocations: 15.98 kB / 255.8 MB, free: 9.379 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006752/0.3933, allocations: 19.95 kB / 255.8 MB, free: 9.359 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002674/0.3936, allocations: 48.48 kB / 255.9 MB, free: 9.312 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.412e-05/0.3937, allocations: 19.98 kB / 255.9 MB, free: 9.293 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006169/0.3943, allocations: 259.2 kB / 256.1 MB, free: 9.043 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.3944, allocations: 0 / 256.1 MB, free: 9.043 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.002056/0.3964, allocations: 176 kB / 256.3 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.000312/0.3968, allocations: 115.2 kB / 256.4 MB, free: 8.746 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003508/0.4003, allocations: 1.05 MB / 257.5 MB, free: 7.645 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.4004, allocations: 0 / 257.5 MB, free: 7.645 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002539/0.4029, allocations: 0.8452 MB / 258.3 MB, free: 6.75 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.4043, allocations: 106.1 kB / 258.4 MB, free: 6.648 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.4097, allocations: 1.483 MB / 259.9 MB, free: 5.137 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000845/0.4106, allocations: 0.8948 MB / 260.8 MB, free: 4.215 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002694/0.4109, allocations: 27.44 kB / 260.8 MB, free: 4.188 MB / 202.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4109, allocations: 0 / 260.8 MB, free: 4.188 MB / 202.7 MB Notification: Performance of Templates: time 0.03173/0.4426, allocations: 13.31 MB / 274.1 MB, free: 6.883 MB / 218.7 MB