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 1.014/1.014, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.000264, allocations: 4 kB / 158.3 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04908/0.04938, allocations: 25.17 MB / 183.4 MB, free: 6.004 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004739/0.05415, allocations: 3.357 MB / 186.8 MB, free: 2.641 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.05579, allocations: 0.8616 MB / 187.6 MB, free: 1.777 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.05607, allocations: 11.94 kB / 187.7 MB, free: 1.766 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.05626, allocations: 71.48 kB / 187.7 MB, free: 1.695 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005808/0.05685, allocations: 227.3 kB / 187.9 MB, free: 1.473 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.05722, allocations: 119.8 kB / 188.1 MB, free: 1.355 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.05795, allocations: 0.4921 MB / 188.6 MB, free: 0.8633 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.05832, allocations: 166.9 kB / 188.7 MB, free: 0.6992 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.05868, allocations: 239.1 kB / 189 MB, free: 476 kB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004544/0.05915, allocations: 282.8 kB / 189.2 MB, free: 192 kB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 8.685e-05/0.05926, allocations: 36 kB / 189.3 MB, free: 156 kB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.05938, allocations: 36 kB / 189.3 MB, free: 120 kB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.05955, allocations: 107.6 kB / 189.4 MB, free: 12 kB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001818/0.05975, allocations: 145.4 kB / 189.5 MB, free: 15.86 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006473/0.06041, allocations: 0.5023 MB / 190 MB, free: 15.36 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.06042, allocations: 0 / 190 MB, free: 15.36 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.336e-06/0.06044, allocations: 0 / 190 MB, free: 15.36 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.766e-06/0.06046, allocations: 0 / 190 MB, free: 15.36 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.00161/0.06208, allocations: 0.8299 MB / 190.9 MB, free: 14.48 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.06213, allocations: 16.03 kB / 190.9 MB, free: 14.46 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.06228, allocations: 63.25 kB / 191 MB, free: 14.4 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000598/0.06289, allocations: 360.9 kB / 191.3 MB, free: 14 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.06296, allocations: 41.31 kB / 191.3 MB, free: 13.96 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.06308, allocations: 52 kB / 191.4 MB, free: 13.91 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.06435, allocations: 0.5453 MB / 191.9 MB, free: 13.34 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.0644, allocations: 0 / 191.9 MB, free: 13.34 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.06449, allocations: 20 kB / 192 MB, free: 13.32 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.06452, allocations: 15.95 kB / 192 MB, free: 13.31 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.06579, allocations: 463.6 kB / 192.4 MB, free: 12.85 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003824/0.06963, allocations: 2.054 MB / 194.5 MB, free: 10.71 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.07097, allocations: 0.6532 MB / 195.1 MB, free: 10.02 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.07104, allocations: 8.547 kB / 195.1 MB, free: 10.02 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.0711, allocations: 43.12 kB / 195.2 MB, free: 9.965 MB / 170.7 MB Notification: Performance of pre-optimization done (n=60): time 4.3e-06/0.07111, allocations: 0 / 195.2 MB, free: 9.965 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.005833/0.07695, allocations: 2.057 MB / 197.2 MB, free: 7.789 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.07704, allocations: 55.97 kB / 197.3 MB, free: 7.723 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005804/0.07763, allocations: 369.7 kB / 197.7 MB, free: 7.352 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.217e-05/0.07771, allocations: 33.7 kB / 197.7 MB, free: 7.312 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.07794, allocations: 279.5 kB / 198 MB, free: 7.039 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.07816, allocations: 201.1 kB / 198.2 MB, free: 6.84 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.0782, allocations: 12 kB / 198.2 MB, free: 6.828 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.07839, allocations: 326.8 kB / 198.5 MB, free: 6.5 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005035/0.07891, allocations: 169 kB / 198.7 MB, free: 6.332 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.07946, allocations: 219.7 kB / 198.9 MB, free: 6.109 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.08, allocations: 183.3 kB / 199.1 MB, free: 5.934 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.928e-06/0.08002, allocations: 0 / 199.1 MB, free: 5.934 MB / 170.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001765/0.08179, allocations: 0.6542 MB / 199.7 MB, free: 5.258 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.08183, allocations: 4 kB / 199.7 MB, free: 5.254 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.592e-06/0.08185, allocations: 0 / 199.7 MB, free: 5.254 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000991/0.08285, allocations: 251.2 kB / 200 MB, free: 4.996 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.08323, allocations: 63.89 kB / 200 MB, free: 4.934 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1243/0.2075, allocations: 6.836 MB / 206.9 MB, free: 20.81 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.208, allocations: 21.95 kB / 206.9 MB, free: 20.81 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.208, allocations: 16.48 kB / 206.9 MB, free: 20.81 MB / 170.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.0003955/0.2084, allocations: 177.6 kB / 207.1 MB, free: 20.7 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.2086, allocations: 48.75 kB / 207.1 MB, free: 20.7 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.2087, allocations: 68.58 kB / 207.2 MB, free: 20.69 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.2087, allocations: 6.703 kB / 207.2 MB, free: 20.69 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.2088, allocations: 3.516 kB / 207.2 MB, free: 20.69 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.2088, allocations: 4.766 kB / 207.2 MB, free: 20.69 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002958/0.2117, allocations: 1.358 MB / 208.6 MB, free: 20.35 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.593e-06/0.2118, allocations: 0 / 208.6 MB, free: 20.35 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.2122, allocations: 59.39 kB / 208.6 MB, free: 20.35 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009578/0.2132, allocations: 258.6 kB / 208.9 MB, free: 20.32 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.2132, allocations: 11.08 kB / 208.9 MB, free: 20.32 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008126/0.2214, allocations: 6.838 MB / 215.7 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/0.2214, allocations: 1.672 kB / 215.7 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003864/0.2253, allocations: 1.039 MB / 216.8 MB, free: 13.76 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005084/0.2259, allocations: 159.8 kB / 216.9 MB, free: 13.62 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.2261, allocations: 13.25 kB / 216.9 MB, free: 13.61 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006133/0.2267, allocations: 27.81 kB / 216.9 MB, free: 13.6 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/0.227, allocations: 51.09 kB / 217 MB, free: 13.59 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.2271, allocations: 15.89 kB / 217 MB, free: 13.59 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0005126/0.2276, allocations: 264.1 kB / 217.3 MB, free: 13.45 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.188e-06/0.2276, allocations: 0 / 217.3 MB, free: 13.45 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.002073/0.2297, allocations: 171.1 kB / 217.4 MB, free: 13.43 MB / 170.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.0002532/0.23, allocations: 116.3 kB / 217.6 MB, free: 13.33 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002932/0.233, allocations: 1.045 MB / 218.6 MB, free: 12.65 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 6.058e-06/0.233, allocations: 0 / 218.6 MB, free: 12.65 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.2352, allocations: 0.8472 MB / 219.4 MB, free: 12.03 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.2363, allocations: 107.9 kB / 219.6 MB, free: 11.98 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003583/0.24, allocations: 1.488 MB / 221 MB, free: 11.04 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004813/0.2405, allocations: 0.8906 MB / 221.9 MB, free: 10.33 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.2407, allocations: 31.09 kB / 222 MB, free: 10.32 MB / 170.7 MB Notification: Performance of SimCode: time 2.552e-06/0.2407, allocations: 0 / 222 MB, free: 10.32 MB / 170.7 MB Notification: Performance of Templates: time 0.01646/0.2572, allocations: 13.3 MB / 235.3 MB, free: 15.29 MB / 186.7 MB