Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003583, allocations: 12 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0695/0.06989, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01151/0.08145, allocations: 7.815 MB / 279.7 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00668/0.08817, allocations: 2.979 MB / 282.7 MB, free: 1.363 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001675/0.08989, allocations: 43.75 kB / 282.8 MB, free: 1.32 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002059/0.09198, allocations: 0.5442 MB / 283.3 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.09518, allocations: 0.6659 MB / 284 MB, free: 108 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.09648, allocations: 247.6 kB / 284.2 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003657/0.1002, allocations: 1.669 MB / 285.9 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003119/0.1033, allocations: 1.488 MB / 287.4 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001772/0.1051, allocations: 0.8329 MB / 288.2 MB, free: 11.83 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00214/0.1073, allocations: 1.047 MB / 289.3 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005005/0.1079, allocations: 132 kB / 289.4 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008537/0.1087, allocations: 203.9 kB / 289.6 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009686/0.1097, allocations: 0.6466 MB / 290.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008314/0.1106, allocations: 492.5 kB / 290.7 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004884/0.1155, allocations: 3.245 MB / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1155, allocations: 0 / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.744e-06/0.1155, allocations: 0 / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.069e-05/0.1156, allocations: 0 / 294 MB, free: 6.062 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.006223/0.1218, allocations: 2.444 MB / 296.4 MB, free: 3.555 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1219, allocations: 12.03 kB / 296.4 MB, free: 3.543 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.1231, allocations: 284.8 kB / 296.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.1266, allocations: 1.343 MB / 298 MB, free: 1.859 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.1269, allocations: 160.2 kB / 298.2 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005688/0.1275, allocations: 211.9 kB / 298.4 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1855/0.313, allocations: 2.773 MB / 301.2 MB, free: 27.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.3132, allocations: 6.609 kB / 301.2 MB, free: 27.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.3135, allocations: 87.2 kB / 301.3 MB, free: 27.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.3136, allocations: 104.7 kB / 301.4 MB, free: 27.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006605/0.3203, allocations: 2.33 MB / 303.7 MB, free: 27.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01782/0.3381, allocations: 8.527 MB / 312.2 MB, free: 22.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/0.3411, allocations: 1.671 MB / 313.9 MB, free: 20.99 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002687/0.3414, allocations: 123.5 kB / 314 MB, free: 20.89 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.3414, allocations: 43.28 kB / 314.1 MB, free: 20.84 MB / 250.7 MB Notification: Performance of pre-optimization done (n=99): time 4.718e-06/0.3415, allocations: 0 / 314.1 MB, free: 20.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=114): time 0.01589/0.3574, allocations: 6.134 MB / 320.2 MB, free: 17.33 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3574, allocations: 66.77 kB / 320.3 MB, free: 17.26 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002164/0.3596, allocations: 1.319 MB / 321.6 MB, free: 16.54 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.3598, allocations: 49.64 kB / 321.6 MB, free: 16.49 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005521/0.3604, allocations: 0.9821 MB / 322.6 MB, free: 15.6 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.3607, allocations: 398.5 kB / 323 MB, free: 15.21 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.988e-05/0.3608, allocations: 32 kB / 323 MB, free: 15.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.361, allocations: 362.8 kB / 323.4 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.3623, allocations: 0.691 MB / 324.1 MB, free: 14.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.3638, allocations: 1.069 MB / 325.1 MB, free: 12.89 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.3655, allocations: 0.8501 MB / 326 MB, free: 12.04 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.3655, allocations: 4 kB / 326 MB, free: 12.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004744/0.3703, allocations: 2.278 MB / 328.3 MB, free: 9.727 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.3704, allocations: 11.95 kB / 328.3 MB, free: 9.715 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.3704, allocations: 12 kB / 328.3 MB, free: 9.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.3716, allocations: 396.1 kB / 328.7 MB, free: 9.309 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.3732, allocations: 336.7 kB / 329 MB, free: 8.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006838/0.38, allocations: 6.374 MB / 335.4 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.3815, allocations: 103.8 kB / 335.5 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.3817, allocations: 56 kB / 335.5 MB, free: 2.066 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (158): * Single equations (assignments): 154 * 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 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001407/0.3831, allocations: 0.6886 MB / 336.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003857/0.3835, allocations: 154.1 kB / 336.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/0.3881, allocations: 2.106 MB / 338.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/0.3882, allocations: 12 kB / 338.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.3882, allocations: 0 / 338.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/0.3883, allocations: 11.97 kB / 338.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.3995, allocations: 4.469 MB / 343 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/0.3995, allocations: 7.953 kB / 343 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.4008, allocations: 212.1 kB / 343.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00154/0.4023, allocations: 439.2 kB / 343.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.4025, allocations: 31.98 kB / 343.7 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.4138, allocations: 7.869 MB / 351.5 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.4138, allocations: 15.94 kB / 351.5 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007129/0.421, allocations: 3.076 MB / 354.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.4221, allocations: 375 kB / 355 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003095/0.4225, allocations: 28 kB / 355 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.4236, allocations: 83.91 kB / 355.1 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002787/0.4239, allocations: 96.77 kB / 355.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.424, allocations: 39.98 kB / 355.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001881/0.4259, allocations: 0.8981 MB / 356.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.33e-07/0.4259, allocations: 0 / 356.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002281/0.4282, allocations: 446.6 kB / 356.6 MB, free: 12.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (103): * Single equations (assignments): 99 * 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 {(3,100.0%) 11,(1,100.0%) 3,(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.0004324/0.4287, allocations: 163 kB / 356.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005045/0.4337, allocations: 2.2 MB / 358.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.4338, allocations: 0 / 358.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003305/0.4371, allocations: 1.419 MB / 360.3 MB, free: 8.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/0.4394, allocations: 371.5 kB / 360.7 MB, free: 7.992 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4503, allocations: 5.3 MB / 366 MB, free: 2.617 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/0.4533, allocations: 1.819 MB / 367.8 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.4539, allocations: 115.4 kB / 367.9 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of SimCode: time 2.166e-06/0.4539, allocations: 11.94 kB / 367.9 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of Templates: time 0.1006/0.5546, allocations: 63.81 MB / 431.8 MB, free: 0.7539 MB / 346.7 MB