Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.Rectifier.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 194.8 MB / 211.6 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.000356, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08/0.08039, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005147/0.08558, allocations: 3.459 MB / 311.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.08774, allocations: 0.9637 MB / 312.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004379/0.08821, allocations: 8 kB / 312.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.08841, allocations: 71.42 kB / 312.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.0891, allocations: 219.3 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.08952, allocations: 127.8 kB / 313.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007811/0.09031, allocations: 495.8 kB / 313.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.0907, allocations: 166.6 kB / 313.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.09114, allocations: 239.1 kB / 314.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004318/0.09159, allocations: 274.8 kB / 314.3 MB, free: 11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.814e-05/0.09169, allocations: 36 kB / 314.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.09181, allocations: 32 kB / 314.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.09199, allocations: 115.6 kB / 314.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.09217, allocations: 129.4 kB / 314.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006976/0.09288, allocations: 0.5063 MB / 315.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.853e-06/0.0929, allocations: 7.938 kB / 315.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.381e-06/0.09291, allocations: 0 / 315.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.09294, allocations: 0 / 315.2 MB, free: 10.18 MB / 266.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.001698/0.09465, allocations: 0.8184 MB / 316 MB, free: 9.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.09471, allocations: 12.03 kB / 316 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.09489, allocations: 71.14 kB / 316.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006889/0.09559, allocations: 365 kB / 316.4 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.09566, allocations: 37.31 kB / 316.5 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.09579, allocations: 55.91 kB / 316.5 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.09709, allocations: 0.5453 MB / 317.1 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.09714, allocations: 4 kB / 317.1 MB, free: 8.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.09722, allocations: 23.94 kB / 317.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.09725, allocations: 12 kB / 317.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.09851, allocations: 455.7 kB / 317.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.1026, allocations: 2.061 MB / 319.6 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.104, allocations: 0.6416 MB / 320.2 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.363e-05/0.1041, allocations: 16.47 kB / 320.3 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1042, allocations: 39.12 kB / 320.3 MB, free: 4.801 MB / 266.7 MB Notification: Performance of pre-optimization done (n=60): time 3.811e-06/0.1042, allocations: 0 / 320.3 MB, free: 4.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.006005/0.1102, allocations: 2.053 MB / 322.3 MB, free: 2.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.1103, allocations: 59.97 kB / 322.4 MB, free: 2.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.1109, allocations: 353.7 kB / 322.8 MB, free: 2.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.1109, allocations: 41.7 kB / 322.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.1112, allocations: 279.5 kB / 323.1 MB, free: 1.879 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.1114, allocations: 201 kB / 323.3 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/0.1115, allocations: 8 kB / 323.3 MB, free: 1.672 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1117, allocations: 334.8 kB / 323.6 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.1122, allocations: 165 kB / 323.8 MB, free: 1.176 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.1127, allocations: 223.8 kB / 324 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005336/0.1133, allocations: 186.1 kB / 324.2 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.285e-06/0.1133, allocations: 0 / 324.2 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001748/0.115, allocations: 0.6426 MB / 324.8 MB, free: 112 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1151, allocations: 4 kB / 324.8 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1151, allocations: 3.984 kB / 324.8 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.1162, allocations: 255.3 kB / 325.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.1166, allocations: 67.89 kB / 325.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009692/0.1264, allocations: 6.84 MB / 332 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.1268, allocations: 20.02 kB / 332 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.1269, allocations: 16 kB / 332 MB, free: 8.359 MB / 282.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 () * 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.0003355/0.1272, allocations: 169.9 kB / 332.2 MB, free: 8.184 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1273, allocations: 51.39 kB / 332.2 MB, free: 8.133 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.1275, allocations: 69.02 kB / 332.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.327e-06/0.1275, allocations: 4 kB / 332.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.1275, allocations: 7.984 kB / 332.3 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1276, allocations: 0 / 332.3 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.1307, allocations: 1.345 MB / 333.6 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.882e-06/0.1308, allocations: 0 / 333.6 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.1312, allocations: 63.89 kB / 333.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.1322, allocations: 259.1 kB / 334 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.1323, allocations: 8 kB / 334 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009623/0.142, allocations: 6.845 MB / 340.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.611e-06/0.142, allocations: 0 / 340.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.1446, allocations: 1.044 MB / 341.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/0.145, allocations: 160.5 kB / 342 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.1451, allocations: 12 kB / 342 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003363/0.1454, allocations: 16 kB / 342 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.1456, allocations: 56.47 kB / 342.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/0.1457, allocations: 19.94 kB / 342.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003854/0.1461, allocations: 251.2 kB / 342.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.97e-07/0.1461, allocations: 0 / 342.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001212/0.1473, allocations: 176 kB / 342.5 MB, free: 13.15 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 () * 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.0001968/0.1475, allocations: 119.2 kB / 342.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.1498, allocations: 1.041 MB / 343.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.635e-06/0.1499, allocations: 0 / 343.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.1515, allocations: 0.8375 MB / 344.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.1522, allocations: 81.52 kB / 344.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003289/0.1555, allocations: 1.552 MB / 346.2 MB, free: 9.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.1562, allocations: 0.887 MB / 347 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.1563, allocations: 31.42 kB / 347.1 MB, free: 8.441 MB / 298.7 MB Notification: Performance of SimCode: time 2.056e-06/0.1564, allocations: 0 / 347.1 MB, free: 8.441 MB / 298.7 MB Notification: Performance of Templates: time 0.02165/0.178, allocations: 13.27 MB / 360.3 MB, free: 11.17 MB / 314.7 MB