Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 171.2 MB / 186.7 MB, free: 1.023 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 233.9 MB, free: 2.367 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.09603, allocations: 38.77 MB / 272.6 MB, free: 11.51 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.521, allocations: 75.66 MB / 348.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5213, allocations: 81.91 kB / 348.4 MB, free: 13.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08491/0.6063, allocations: 19.7 MB / 368.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.022e-06/0.6063, allocations: 0 / 368.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.391e-05/0.6064, allocations: 19.94 kB / 368.1 MB, free: 13.34 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.006226/0.6127, allocations: 1.158 MB / 369.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.6128, allocations: 8.031 kB / 369.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.6142, allocations: 138.5 kB / 369.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.6161, allocations: 0.5061 MB / 369.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.6163, allocations: 71.36 kB / 370 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/0.6167, allocations: 90.69 kB / 370 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004292/0.621, allocations: 0.8988 MB / 370.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-05/0.6211, allocations: 3.938 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002115/0.6214, allocations: 37.81 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.547e-05/0.6214, allocations: 24 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004106/0.6256, allocations: 0.7146 MB / 371.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.6384, allocations: 3.254 MB / 375 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00356/0.642, allocations: 0.9205 MB / 375.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.6422, allocations: 8.562 kB / 375.9 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/0.6441, allocations: 439.9 kB / 376.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 6.432e-06/0.6442, allocations: 0 / 376.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.01171/0.6559, allocations: 1.542 MB / 377.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001864/0.6561, allocations: 192.5 kB / 378.1 MB, free: 5.004 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.6574, allocations: 438.8 kB / 378.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002119/0.6576, allocations: 42.64 kB / 378.5 MB, free: 4.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005929/0.6583, allocations: 396.1 kB / 378.9 MB, free: 4.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/0.6588, allocations: 227.7 kB / 379.1 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.884e-05/0.6589, allocations: 17.19 kB / 379.2 MB, free: 4.117 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002955/0.6592, allocations: 366.4 kB / 379.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.6607, allocations: 233.8 kB / 379.8 MB, free: 3.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.6625, allocations: 439.9 kB / 380.2 MB, free: 3.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.6641, allocations: 278.9 kB / 380.5 MB, free: 3.008 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/0.6642, allocations: 4 kB / 380.5 MB, free: 3.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.005219/0.6694, allocations: 0.9222 MB / 381.4 MB, free: 2.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/0.6696, allocations: 8 kB / 381.4 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.492e-05/0.6696, allocations: 4 kB / 381.4 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/0.6719, allocations: 267.2 kB / 381.7 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.6734, allocations: 135.7 kB / 381.8 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.6865, allocations: 4.457 MB / 386.2 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.688, allocations: 99.3 kB / 386.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.6883, allocations: 31.98 kB / 386.4 MB, free: 12.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001049/0.6893, allocations: 233.6 kB / 386.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.6897, allocations: 59.34 kB / 386.7 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005291/0.695, allocations: 0.8537 MB / 387.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.695, allocations: 12 kB / 387.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.6951, allocations: 8.047 kB / 387.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.6951, allocations: 0 / 387.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00489/0.7, allocations: 1.667 MB / 389.2 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.7001, allocations: 0 / 389.2 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.7011, allocations: 75.89 kB / 389.3 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002182/0.7034, allocations: 264.5 kB / 389.5 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002257/0.7036, allocations: 12 kB / 389.5 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/0.7172, allocations: 4.437 MB / 394 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.7173, allocations: 0 / 394 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006725/0.724, allocations: 1.212 MB / 395.2 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/0.725, allocations: 196.2 kB / 395.4 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000315/0.7253, allocations: 23.89 kB / 395.4 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.7267, allocations: 47.97 kB / 395.5 MB, free: 3.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004078/0.7271, allocations: 56.47 kB / 395.5 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.7273, allocations: 20 kB / 395.5 MB, free: 3.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008877/0.7282, allocations: 299.1 kB / 395.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.001e-06/0.7282, allocations: 0 / 395.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002474/0.7307, allocations: 279.2 kB / 396.1 MB, free: 2.684 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005283/0.7313, allocations: 159.1 kB / 396.2 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004627/0.736, allocations: 0.9836 MB / 397.2 MB, free: 1.508 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.736, allocations: 0 / 397.2 MB, free: 1.508 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002885/0.7389, allocations: 0.6675 MB / 397.9 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.7404, allocations: 106.2 kB / 398 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006966/0.7474, allocations: 1.792 MB / 399.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.7486, allocations: 0.9856 MB / 400.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008461/0.7495, allocations: 60.86 kB / 400.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/0.7497, allocations: 43.42 kB / 400.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.533e-06/0.7498, allocations: 0 / 400.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of Templates: time 0.03986/0.7896, allocations: 10.2 MB / 411.1 MB, free: 3.613 MB / 330.7 MB