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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.968/0.968, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.87e-05/1.88e-05, allocations: 4 kB / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0446/0.04464, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1704/0.2151, allocations: 35.92 MB / 209.2 MB, free: 6.996 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.2153, allocations: 67.19 kB / 209.3 MB, free: 6.996 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.029/0.2443, allocations: 8.094 MB / 217.4 MB, free: 5.645 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.048e-06/0.2444, allocations: 0 / 217.4 MB, free: 5.645 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.777e-05/0.2444, allocations: 9.625 kB / 217.4 MB, free: 5.645 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.001125/0.2455, allocations: 0.7566 MB / 218.1 MB, free: 5.078 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2456, allocations: 11.16 kB / 218.2 MB, free: 5.078 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.2457, allocations: 69.16 kB / 218.2 MB, free: 5.043 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.2462, allocations: 369.8 kB / 218.6 MB, free: 4.75 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.2463, allocations: 15.5 kB / 218.6 MB, free: 4.75 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.47e-05/0.2464, allocations: 37.33 kB / 218.6 MB, free: 4.746 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008659/0.2472, allocations: 375.2 kB / 219 MB, free: 4.723 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008465/0.2481, allocations: 444 kB / 219.4 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2481, allocations: 7.812 kB / 219.4 MB, free: 4.559 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.2482, allocations: 0 / 219.4 MB, free: 4.559 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.2482, allocations: 11.5 kB / 219.5 MB, free: 4.559 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00356/0.2518, allocations: 1.967 MB / 221.4 MB, free: 3.367 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008626/0.2527, allocations: 0.5865 MB / 222 MB, free: 3.207 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005588/0.2533, allocations: 360.4 kB / 222.4 MB, free: 3.184 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.285e-05/0.2533, allocations: 4.438 kB / 222.4 MB, free: 3.184 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.2533, allocations: 46.75 kB / 222.4 MB, free: 3.137 MB / 170.7 MB Notification: Performance of pre-optimization done (n=60): time 3.335e-06/0.2534, allocations: 0 / 222.4 MB, free: 3.137 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.002255/0.2556, allocations: 1.142 MB / 223.6 MB, free: 2.648 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.079e-05/0.2557, allocations: 55.84 kB / 223.6 MB, free: 2.586 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003242/0.256, allocations: 277.3 kB / 223.9 MB, free: 2.465 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.2561, allocations: 25.7 kB / 223.9 MB, free: 2.434 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2562, allocations: 282 kB / 224.2 MB, free: 2.215 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.2563, allocations: 196.2 kB / 224.4 MB, free: 2.066 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.2563, allocations: 3.875 kB / 224.4 MB, free: 2.066 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.2564, allocations: 334 kB / 224.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.2567, allocations: 135.4 kB / 224.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.257, allocations: 177.7 kB / 225 MB, free: 1.711 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.2573, allocations: 149.7 kB / 225.2 MB, free: 1.688 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.188e-06/0.2574, allocations: 0 / 225.2 MB, free: 1.688 MB / 170.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001211/0.2586, allocations: 0.5471 MB / 225.7 MB, free: 1.547 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.2586, allocations: 11.91 kB / 225.7 MB, free: 1.539 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.518e-06/0.2586, allocations: 0 / 225.7 MB, free: 1.539 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000893/0.2595, allocations: 244.4 kB / 225.9 MB, free: 1.465 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.2599, allocations: 62.33 kB / 226 MB, free: 1.453 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007381/0.2673, allocations: 6.512 MB / 232.5 MB, free: 12 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.2677, allocations: 11.61 kB / 232.5 MB, free: 12 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.2678, allocations: 15.06 kB / 232.5 MB, free: 12 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealDiode3.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode6.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealDiode2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode5.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealDiode1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode4.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" 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 () * 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.0002611/0.2681, allocations: 145 kB / 232.7 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2682, allocations: 46.53 kB / 232.7 MB, free: 11.83 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.2683, allocations: 59.7 kB / 232.8 MB, free: 11.82 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.707e-06/0.2684, allocations: 7.344 kB / 232.8 MB, free: 11.82 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.593e-06/0.2684, allocations: 128 / 232.8 MB, free: 11.82 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.2684, allocations: 11.98 kB / 232.8 MB, free: 11.8 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.2707, allocations: 1.172 MB / 234 MB, free: 11.3 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.903e-06/0.2707, allocations: 7.875 kB / 234 MB, free: 11.29 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.2711, allocations: 58.39 kB / 234 MB, free: 11.28 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008624/0.272, allocations: 248.1 kB / 234.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.272, allocations: 0 / 234.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00785/0.2799, allocations: 6.52 MB / 240.8 MB, free: 5.734 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.312e-06/0.2799, allocations: 0 / 240.8 MB, free: 5.734 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.2818, allocations: 0.9088 MB / 241.7 MB, free: 5.461 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.2821, allocations: 165.8 kB / 241.9 MB, free: 5.316 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.2822, allocations: 0 / 241.9 MB, free: 5.316 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003318/0.2825, allocations: 15.7 kB / 241.9 MB, free: 5.309 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.2827, allocations: 51.23 kB / 241.9 MB, free: 5.289 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.2827, allocations: 17.69 kB / 242 MB, free: 5.285 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002804/0.283, allocations: 215.2 kB / 242.2 MB, free: 5.191 MB / 186.7 MB Notification: Performance of sort global known variables: time 9.51e-07/0.283, allocations: 0 / 242.2 MB, free: 5.191 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001142/0.2842, allocations: 151.9 kB / 242.3 MB, free: 5.191 MB / 186.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.0001912/0.2844, allocations: 110.2 kB / 242.4 MB, free: 5.094 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.286, allocations: 0.9352 MB / 243.4 MB, free: 4.422 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.022e-06/0.2861, allocations: 0 / 243.4 MB, free: 4.422 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.2873, allocations: 0.7634 MB / 244.1 MB, free: 3.812 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.2879, allocations: 76.16 kB / 244.2 MB, free: 3.766 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.2899, allocations: 0.9187 MB / 245.1 MB, free: 3.141 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006174/0.2905, allocations: 0.8938 MB / 246 MB, free: 2.348 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.2906, allocations: 30.64 kB / 246 MB, free: 2.336 MB / 186.7 MB Notification: Performance of SimCode: time 1.447e-06/0.2907, allocations: 0 / 246 MB, free: 2.336 MB / 186.7 MB Notification: Performance of Templates: time 0.01972/0.3104, allocations: 13.02 MB / 259.1 MB, free: 5.426 MB / 202.7 MB