Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003341, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09022, allocations: 44.5 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0296/0.1199, allocations: 17.54 MB / 326.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.1357, allocations: 6.147 MB / 332.8 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003342/0.1391, allocations: 107.5 kB / 332.9 MB, free: 8.484 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004597/0.1438, allocations: 1.111 MB / 334 MB, free: 7.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00787/0.1517, allocations: 1.807 MB / 335.8 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004346/0.156, allocations: 0.8733 MB / 336.7 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.1667, allocations: 4.384 MB / 341 MB, free: 292 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007114/0.1739, allocations: 3.67 MB / 344.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004109/0.178, allocations: 2.012 MB / 346.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005557/0.1837, allocations: 2.525 MB / 349.3 MB, free: 8.008 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.185, allocations: 339.9 kB / 349.6 MB, free: 7.676 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.1875, allocations: 0.5426 MB / 350.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002001/0.1895, allocations: 1.355 MB / 351.5 MB, free: 5.773 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002087/0.1916, allocations: 1.194 MB / 352.7 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.205, allocations: 8.633 MB / 361.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.205, allocations: 0 / 361.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.205, allocations: 0 / 361.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003055/0.2054, allocations: 0 / 361.3 MB, free: 11.91 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02213/0.2275, allocations: 5.807 MB / 367.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.2276, allocations: 8.031 kB / 367.1 MB, free: 6.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008004/0.2356, allocations: 1.055 MB / 368.2 MB, free: 4.957 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.2459, allocations: 3.387 MB / 371.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005158/0.2465, allocations: 398.7 kB / 372 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/0.2483, allocations: 0.5232 MB / 372.5 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2695/0.5179, allocations: 6.927 MB / 379.4 MB, free: 52.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002313/0.5182, allocations: 8.422 kB / 379.4 MB, free: 52.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/0.5194, allocations: 217.3 kB / 379.6 MB, free: 52.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003899/0.5198, allocations: 259.7 kB / 379.9 MB, free: 52.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01873/0.5385, allocations: 5.873 MB / 385.8 MB, free: 49.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05175/0.5903, allocations: 22.32 MB / 408.1 MB, free: 32.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01093/0.6013, allocations: 8.214 MB / 416.3 MB, free: 23.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.6146, allocations: 5.124 MB / 421.4 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.6147, allocations: 60.56 kB / 421.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=231): time 5.48e-06/0.6147, allocations: 4 kB / 421.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=256): time 0.04112/0.6558, allocations: 12.46 MB / 433.9 MB, free: 5.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.6559, allocations: 81.36 kB / 434 MB, free: 5.172 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005686/0.6616, allocations: 2.988 MB / 437 MB, free: 2.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004798/0.6622, allocations: 65.7 kB / 437.1 MB, free: 2.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/0.6641, allocations: 2.475 MB / 439.5 MB, free: 15.62 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/0.6656, allocations: 0.8779 MB / 440.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.6659, allocations: 68 kB / 440.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003225/0.6663, allocations: 428.8 kB / 440.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004136/0.6704, allocations: 1.392 MB / 442.3 MB, free: 12.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005241/0.6757, allocations: 2.364 MB / 444.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005144/0.6809, allocations: 1.808 MB / 446.5 MB, free: 8.234 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.254e-05/0.681, allocations: 8 kB / 446.5 MB, free: 8.227 MB / 330.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.01525/0.6962, allocations: 4.878 MB / 451.4 MB, free: 3.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.6963, allocations: 16 kB / 451.4 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.578e-05/0.6964, allocations: 32 kB / 451.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002955/0.6994, allocations: 0.6843 MB / 452.1 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007847/0.7073, allocations: 0.7605 MB / 452.8 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02284/0.7302, allocations: 9.597 MB / 462.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005865/0.7361, allocations: 188.1 kB / 462.6 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008357/0.737, allocations: 145.6 kB / 462.8 MB, free: 7.301 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (383): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006541/0.7435, allocations: 1.57 MB / 464.3 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/0.7451, allocations: 347.8 kB / 464.7 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01974/0.7648, allocations: 4.299 MB / 469 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-05/0.765, allocations: 11.95 kB / 469 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.765, allocations: 0 / 469 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003891/0.7689, allocations: 0.7075 MB / 469.7 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001898/0.7709, allocations: 55.94 kB / 469.8 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004914/0.7759, allocations: 163.9 kB / 469.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/0.777, allocations: 197.7 kB / 470.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02343/0.8005, allocations: 4.22 MB / 474.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01733/0.8179, allocations: 5.055 MB / 479.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00484/0.8228, allocations: 1.449 MB / 480.8 MB, free: 4.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006577/0.8294, allocations: 2 MB / 482.8 MB, free: 2.965 MB / 362.7 MB Notification: Performance of Backend: time 1.142e-06/0.8294, allocations: 0 / 482.8 MB, free: 2.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01242/0.8419, allocations: 3.231 MB / 486.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of SimCode: time 0.03975/0.8817, allocations: 12.32 MB / 498.4 MB, free: 3.293 MB / 378.7 MB Notification: Performance of Templates: time 0.5014/1.383, allocations: 52.51 MB / 0.538 GB, free: 122.5 MB / 410.7 MB