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.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003551, allocations: 11.98 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08004/0.08041, allocations: 44.5 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01342/0.09387, allocations: 8.376 MB / 316.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007608/0.1015, allocations: 3.318 MB / 320.1 MB, free: 5.293 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.1031, allocations: 43.75 kB / 320.1 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002099/0.1053, allocations: 0.6414 MB / 320.7 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.1082, allocations: 0.7243 MB / 321.5 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1093, allocations: 267.6 kB / 321.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003566/0.1129, allocations: 1.798 MB / 323.5 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002721/0.1156, allocations: 1.54 MB / 325.1 MB, free: 252 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.1174, allocations: 0.8757 MB / 325.9 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002061/0.1195, allocations: 1.128 MB / 327.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004653/0.1199, allocations: 140 kB / 327.2 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008969/0.1209, allocations: 223.8 kB / 327.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.1219, allocations: 0.6582 MB / 328.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009601/0.1229, allocations: 0.5199 MB / 328.6 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005331/0.1283, allocations: 3.463 MB / 332.1 MB, free: 9.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1283, allocations: 4 kB / 332.1 MB, free: 9.215 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.022e-06/0.1283, allocations: 0 / 332.1 MB, free: 9.215 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.14e-05/0.1284, allocations: 0 / 332.1 MB, free: 9.215 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.006352/0.1348, allocations: 2.593 MB / 334.7 MB, free: 6.559 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1348, allocations: 8.031 kB / 334.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.136, allocations: 312.4 kB / 335 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003705/0.1398, allocations: 1.454 MB / 336.4 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.14, allocations: 164.4 kB / 336.6 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005255/0.1405, allocations: 219.9 kB / 336.8 MB, free: 4.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007298/0.1479, allocations: 2.893 MB / 339.7 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.448e-05/0.148, allocations: 11.84 kB / 339.7 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.1483, allocations: 88 kB / 339.8 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001733/0.1485, allocations: 116.3 kB / 339.9 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00656/0.155, allocations: 2.414 MB / 342.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02036/0.1754, allocations: 9.074 MB / 351.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003407/0.1789, allocations: 1.682 MB / 353.1 MB, free: 3.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003901/0.1793, allocations: 207.2 kB / 353.3 MB, free: 3.332 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.1794, allocations: 39.56 kB / 353.3 MB, free: 3.285 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 4.809e-06/0.1794, allocations: 0 / 353.3 MB, free: 3.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.02193/0.2013, allocations: 7.343 MB / 360.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.2014, allocations: 64.41 kB / 360.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/0.2045, allocations: 1.498 MB / 362.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002257/0.2048, allocations: 45.7 kB / 362.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.2058, allocations: 1.046 MB / 363.3 MB, free: 9.121 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005784/0.2064, allocations: 441.7 kB / 363.7 MB, free: 8.684 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.2065, allocations: 32 kB / 363.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002426/0.2068, allocations: 370.8 kB / 364.1 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/0.2086, allocations: 0.7418 MB / 364.9 MB, free: 7.539 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/0.2109, allocations: 1.173 MB / 366 MB, free: 6.184 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.2131, allocations: 0.9315 MB / 367 MB, free: 5.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/0.2132, allocations: 7.953 kB / 367 MB, free: 5.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=193) (initialization): time 0.006318/0.2195, allocations: 2.509 MB / 369.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.2196, allocations: 10.03 kB / 369.5 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/0.2196, allocations: 12 kB / 369.5 MB, free: 2.695 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.2215, allocations: 0.5568 MB / 370.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.2233, allocations: 351.5 kB / 370.4 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2158/0.4392, allocations: 6.492 MB / 376.9 MB, free: 56.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.4408, allocations: 116.9 kB / 377 MB, free: 56.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.441, allocations: 63.19 kB / 377.1 MB, free: 56.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001547/0.4426, allocations: 0.7102 MB / 377.8 MB, free: 56.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004161/0.443, allocations: 178.9 kB / 378 MB, free: 56.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005489/0.4485, allocations: 2.317 MB / 380.3 MB, free: 55.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.4486, allocations: 15.86 kB / 380.3 MB, free: 55.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.4486, allocations: 5.438 kB / 380.3 MB, free: 55.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.4487, allocations: 6.188 kB / 380.3 MB, free: 55.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.4593, allocations: 4.81 MB / 385.1 MB, free: 53.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.4594, allocations: 2.781 kB / 385.1 MB, free: 53.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.4606, allocations: 221.9 kB / 385.3 MB, free: 53.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/0.4627, allocations: 0.5857 MB / 385.9 MB, free: 53.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.4628, allocations: 30.52 kB / 386 MB, free: 53.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.4735, allocations: 7.992 MB / 394 MB, free: 47.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.381e-06/0.4736, allocations: 6.797 kB / 394 MB, free: 47.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00701/0.4806, allocations: 3.342 MB / 397.3 MB, free: 45.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.4817, allocations: 404.7 kB / 397.7 MB, free: 45.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/0.482, allocations: 27.25 kB / 397.7 MB, free: 45.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.4833, allocations: 91.89 kB / 397.8 MB, free: 45.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.4836, allocations: 100.8 kB / 397.9 MB, free: 45.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.4837, allocations: 36 kB / 397.9 MB, free: 45.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.4854, allocations: 1.019 MB / 399 MB, free: 44.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.4854, allocations: 0.5938 kB / 399 MB, free: 44.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001987/0.4874, allocations: 0.4935 MB / 399.5 MB, free: 43.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 98 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003247/0.4878, allocations: 157.5 kB / 399.6 MB, free: 43.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004475/0.4922, allocations: 2.341 MB / 402 MB, free: 41.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.315e-06/0.4923, allocations: 0 / 402 MB, free: 41.42 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003014/0.4953, allocations: 1.478 MB / 403.4 MB, free: 39.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.4976, allocations: 424.8 kB / 403.8 MB, free: 39.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008528/0.5062, allocations: 5.637 MB / 409.5 MB, free: 33.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/0.5078, allocations: 1.886 MB / 411.4 MB, free: 31.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005897/0.5084, allocations: 135.3 kB / 411.5 MB, free: 31.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.917e-06/0.5085, allocations: 0 / 411.5 MB, free: 31.75 MB / 314.7 MB Notification: Performance of Templates: time 0.07806/0.5865, allocations: 58.92 MB / 470.4 MB, free: 4.746 MB / 346.7 MB