Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="mat",numberOfIntervals=6000,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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003466, allocations: 11.98 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07999, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02959/0.1096, allocations: 16.91 MB / 289.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01518/0.1249, allocations: 5.835 MB / 295.4 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003503/0.1284, allocations: 107.5 kB / 295.5 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004883/0.1333, allocations: 1.096 MB / 296.6 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007567/0.141, allocations: 1.667 MB / 298.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004341/0.1453, allocations: 0.8577 MB / 299.1 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.225/0.3704, allocations: 4.254 MB / 303.4 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008288/0.3787, allocations: 3.719 MB / 307.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005062/0.3838, allocations: 1.983 MB / 309.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006292/0.3901, allocations: 2.4 MB / 311.5 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002078/0.3923, allocations: 328.5 kB / 311.8 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004073/0.3964, allocations: 0.5047 MB / 312.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00306/0.3995, allocations: 1.349 MB / 313.6 MB, free: 10 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002896/0.4025, allocations: 1.164 MB / 314.8 MB, free: 9.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/0.4144, allocations: 8.429 MB / 323.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4144, allocations: 0 / 323.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.4144, allocations: 0 / 323.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0003371/0.4148, allocations: 0 / 323.2 MB, free: 5.711 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.0199/0.4347, allocations: 5.641 MB / 328.9 MB, free: 1.82 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4347, allocations: 8.031 kB / 328.9 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005368/0.4401, allocations: 0.835 MB / 329.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009441/0.4496, allocations: 3.219 MB / 332.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005198/0.4502, allocations: 390.8 kB / 333.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/0.4521, allocations: 0.504 MB / 333.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02226/0.4744, allocations: 6.645 MB / 340.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002127/0.4747, allocations: 11.84 kB / 340.5 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/0.4758, allocations: 217.1 kB / 340.7 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003858/0.4762, allocations: 242.2 kB / 340.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.4952, allocations: 5.494 MB / 346.4 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05874/0.554, allocations: 20.99 MB / 367.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008162/0.5622, allocations: 4.011 MB / 371.4 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005567/0.5628, allocations: 142.8 kB / 371.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.067e-05/0.5629, allocations: 68.44 kB / 371.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=221): time 6.282e-06/0.5629, allocations: 0 / 371.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=261): time 0.05227/0.6152, allocations: 12.99 MB / 384.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.6153, allocations: 81.47 kB / 384.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007159/0.6225, allocations: 2.881 MB / 387.6 MB, free: 9.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005621/0.6231, allocations: 65.7 kB / 387.6 MB, free: 9.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002826/0.6259, allocations: 2.408 MB / 390 MB, free: 7.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/0.6274, allocations: 0.8947 MB / 390.9 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/0.6278, allocations: 68 kB / 391 MB, free: 6.066 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003169/0.6281, allocations: 432.8 kB / 391.4 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004131/0.6323, allocations: 1.408 MB / 392.8 MB, free: 4.227 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005137/0.6374, allocations: 2.342 MB / 395.2 MB, free: 1.473 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005204/0.6427, allocations: 1.831 MB / 397 MB, free: 15.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.643e-05/0.6428, allocations: 8 kB / 397 MB, free: 15.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=414) (initialization): time 0.01496/0.6577, allocations: 5.041 MB / 402.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.6578, allocations: 21.09 kB / 402.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-05/0.6579, allocations: 31.98 kB / 402.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003202/0.6611, allocations: 0.7761 MB / 402.9 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00539/0.6665, allocations: 0.7254 MB / 403.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02182/0.6884, allocations: 13.13 MB / 416.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004009/0.6924, allocations: 187.7 kB / 416.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006067/0.6931, allocations: 136 kB / 417.1 MB, free: 10.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (368): * Single equations (assignments): 360 * 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: 6 * 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: 6 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(4,93.8%) 17,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004567/0.6977, allocations: 1.574 MB / 418.6 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.6987, allocations: 347.8 kB / 419 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/0.7117, allocations: 4.333 MB / 423.3 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.135e-05/0.7118, allocations: 15.95 kB / 423.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.7118, allocations: 7.953 kB / 423.3 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002645/0.7145, allocations: 0.6959 MB / 424 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/0.7157, allocations: 59.38 kB / 424.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003152/0.7188, allocations: 151.8 kB / 424.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007135/0.7196, allocations: 193.8 kB / 424.4 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01645/0.736, allocations: 4.285 MB / 428.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01397/0.75, allocations: 5.24 MB / 433.9 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003995/0.7541, allocations: 1.512 MB / 435.5 MB, free: 7.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004928/0.7591, allocations: 1.929 MB / 437.4 MB, free: 6.027 MB / 362.7 MB Notification: Performance of Backend: time 8.71e-07/0.7591, allocations: 0 / 437.4 MB, free: 6.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01096/0.7701, allocations: 3.544 MB / 440.9 MB, free: 2.375 MB / 362.7 MB Notification: Performance of SimCode: time 0.2709/1.041, allocations: 12.17 MB / 453.1 MB, free: 116.1 MB / 362.7 MB Notification: Performance of Templates: time 0.1351/1.176, allocations: 51.04 MB / 0.4923 GB, free: 78.34 MB / 362.7 MB