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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 194.8 MB / 211.6 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003507, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.08116, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01471/0.09592, allocations: 9.533 MB / 317.9 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00916/0.1051, allocations: 3.781 MB / 321.7 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002401/0.1076, allocations: 59.69 kB / 321.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.1104, allocations: 0.7307 MB / 322.5 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004144/0.1146, allocations: 0.8412 MB / 323.3 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.1164, allocations: 335.5 kB / 323.6 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00489/0.1213, allocations: 2.126 MB / 325.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00427/0.1257, allocations: 2.053 MB / 327.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.128, allocations: 1.043 MB / 328.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0029/0.131, allocations: 1.401 MB / 330.3 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007984/0.1318, allocations: 168 kB / 330.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1332, allocations: 251.8 kB / 330.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001643/0.1348, allocations: 0.8685 MB / 331.5 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.1363, allocations: 0.625 MB / 332.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007056/0.1433, allocations: 4.379 MB / 336.5 MB, free: 4.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.983e-06/0.1434, allocations: 0 / 336.5 MB, free: 4.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.827e-06/0.1434, allocations: 0 / 336.5 MB, free: 4.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001369/0.1436, allocations: 0 / 336.5 MB, free: 4.738 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.00865/0.1522, allocations: 3.198 MB / 339.7 MB, free: 1.473 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1523, allocations: 8.031 kB / 339.7 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.154, allocations: 399.5 kB / 340.1 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005456/0.1595, allocations: 1.88 MB / 342 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/0.1599, allocations: 209.7 kB / 342.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009362/0.1608, allocations: 283.7 kB / 342.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.1714, allocations: 3.653 MB / 346.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/0.1716, allocations: 11.91 kB / 346.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005705/0.1722, allocations: 112 kB / 346.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002178/0.1724, allocations: 145.4 kB / 346.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009159/0.1816, allocations: 3.059 MB / 349.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02912/0.2108, allocations: 11.6 MB / 361.1 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003783/0.2146, allocations: 1.872 MB / 362.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004477/0.2151, allocations: 211.1 kB / 363.2 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.465e-05/0.2152, allocations: 48.12 kB / 363.2 MB, free: 9.367 MB / 314.7 MB Notification: Performance of pre-optimization done (n=124): time 4.719e-06/0.2152, allocations: 0 / 363.2 MB, free: 9.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=139): time 0.019/0.2342, allocations: 6.594 MB / 369.8 MB, free: 2.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.2343, allocations: 64.72 kB / 369.9 MB, free: 2.539 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.2387, allocations: 1.923 MB / 371.8 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002625/0.239, allocations: 53.7 kB / 371.8 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.21/0.449, allocations: 1.321 MB / 373.2 MB, free: 58.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006185/0.4496, allocations: 486.5 kB / 373.6 MB, free: 58.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.4498, allocations: 35.78 kB / 373.7 MB, free: 58.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.45, allocations: 381.4 kB / 374 MB, free: 58.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.452, allocations: 0.8141 MB / 374.9 MB, free: 58.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002322/0.4543, allocations: 1.366 MB / 376.2 MB, free: 57.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.4568, allocations: 1.041 MB / 377.3 MB, free: 56.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.03e-05/0.4568, allocations: 5.25 kB / 377.3 MB, free: 56.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006148/0.463, allocations: 2.685 MB / 379.9 MB, free: 55.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.4631, allocations: 13.12 kB / 380 MB, free: 55.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-05/0.4631, allocations: 17.53 kB / 380 MB, free: 55.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.4643, allocations: 366 kB / 380.3 MB, free: 55.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002202/0.4666, allocations: 440.2 kB / 380.8 MB, free: 55.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0067/0.4733, allocations: 6.044 MB / 386.8 MB, free: 50.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.4753, allocations: 122.6 kB / 386.9 MB, free: 50.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/0.4756, allocations: 79.03 kB / 387 MB, free: 50.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * 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 (212): * Single equations (assignments): 208 * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002172/0.4778, allocations: 0.9053 MB / 387.9 MB, free: 50.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000552/0.4784, allocations: 203.1 kB / 388.1 MB, free: 50.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005143/0.4835, allocations: 2.396 MB / 390.5 MB, free: 49.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/0.4836, allocations: 12.53 kB / 390.5 MB, free: 49.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.4836, allocations: 7.688 kB / 390.5 MB, free: 49.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.837e-05/0.4837, allocations: 3.797 kB / 390.5 MB, free: 49.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.4954, allocations: 5.438 MB / 396 MB, free: 46.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.4955, allocations: 4.219 kB / 396 MB, free: 46.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.4971, allocations: 269.1 kB / 396.2 MB, free: 46.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/0.4984, allocations: 385.3 kB / 396.6 MB, free: 46.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/0.4987, allocations: 40.36 kB / 396.7 MB, free: 46.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007422/0.5061, allocations: 7.523 MB / 404.2 MB, free: 38.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.599e-06/0.5061, allocations: 7.938 kB / 404.2 MB, free: 38.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006067/0.5122, allocations: 3.556 MB / 407.7 MB, free: 35.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.5134, allocations: 470.6 kB / 408.2 MB, free: 34.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.5138, allocations: 32 kB / 408.2 MB, free: 34.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.5151, allocations: 92.42 kB / 408.3 MB, free: 34.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.5153, allocations: 109 kB / 408.4 MB, free: 34.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.5154, allocations: 40 kB / 408.5 MB, free: 34.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002306/0.5178, allocations: 1.314 MB / 409.8 MB, free: 33 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.058e-06/0.5178, allocations: 0 / 409.8 MB, free: 33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002649/0.5205, allocations: 0.5372 MB / 410.3 MB, free: 32.47 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (130): * Single equations (assignments): 126 * 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: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004116/0.5209, allocations: 167 kB / 410.5 MB, free: 32.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004247/0.5252, allocations: 2.45 MB / 412.9 MB, free: 29.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.31e-06/0.5252, allocations: 0 / 412.9 MB, free: 29.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00239/0.5276, allocations: 1.475 MB / 414.4 MB, free: 28.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/0.5305, allocations: 499 kB / 414.9 MB, free: 27.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5419, allocations: 6.777 MB / 421.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0024/0.5444, allocations: 2.206 MB / 423.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008177/0.5452, allocations: 163.4 kB / 424 MB, free: 18.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.798e-06/0.5452, allocations: 0 / 424 MB, free: 18.54 MB / 314.7 MB Notification: Performance of Templates: time 0.1319/0.6771, allocations: 85.95 MB / 0.498 GB, free: 12.48 MB / 394.7 MB