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.SMPM_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.602/1.602, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.186e-05, allocations: 4 kB / 222.5 MB, free: 8.672 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0707/0.07074, allocations: 38.76 MB / 261.3 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.3899, allocations: 98.01 MB / 359.3 MB, free: 6.613 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.3902, allocations: 85.45 kB / 359.4 MB, free: 6.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1954/0.5856, allocations: 48.67 MB / 408.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.837e-06/0.5857, allocations: 0 / 408.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002456/0.5859, allocations: 63.88 kB / 408.1 MB, free: 8.637 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.006937/0.5929, allocations: 2.338 MB / 410.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.593, allocations: 8.031 kB / 410.5 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/0.5946, allocations: 316.5 kB / 410.8 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004647/0.5993, allocations: 1.589 MB / 412.4 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.5995, allocations: 72 kB / 412.4 MB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000726/0.6002, allocations: 135.9 kB / 412.6 MB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006107/0.6064, allocations: 2.075 MB / 414.6 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1937/0.8001, allocations: 2.487 MB / 417.1 MB, free: 83.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.8002, allocations: 9.547 kB / 417.1 MB, free: 83.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.8006, allocations: 7.609 kB / 417.1 MB, free: 83.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/0.8007, allocations: 103 kB / 417.2 MB, free: 83.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01816/0.8189, allocations: 8.628 MB / 425.9 MB, free: 81.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.8215, allocations: 1.651 MB / 427.5 MB, free: 80.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.823, allocations: 0.7718 MB / 428.3 MB, free: 80.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003283/0.8234, allocations: 137.6 kB / 428.4 MB, free: 80.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.8234, allocations: 45.27 kB / 428.5 MB, free: 80.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 4.659e-06/0.8235, allocations: 1.688 kB / 428.5 MB, free: 80.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.01208/0.8356, allocations: 4.88 MB / 433.4 MB, free: 79.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.8356, allocations: 69.34 kB / 433.4 MB, free: 79.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/0.8377, allocations: 1.046 MB / 434.5 MB, free: 79.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002182/0.838, allocations: 25.7 kB / 434.5 MB, free: 79.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006337/0.8386, allocations: 1.061 MB / 435.6 MB, free: 78.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004111/0.839, allocations: 440.5 kB / 436 MB, free: 78.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.8392, allocations: 0 / 436 MB, free: 78.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.8393, allocations: 374.7 kB / 436.3 MB, free: 78.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.8407, allocations: 0.6831 MB / 437 MB, free: 78.28 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.8421, allocations: 1.101 MB / 438.1 MB, free: 77.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.8438, allocations: 0.8744 MB / 439 MB, free: 77.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.8438, allocations: 6.219 kB / 439 MB, free: 77.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005041/0.8488, allocations: 2.327 MB / 441.3 MB, free: 77.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.8489, allocations: 14.47 kB / 441.4 MB, free: 77.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.8489, allocations: 14.91 kB / 441.4 MB, free: 77.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.8509, allocations: 0.5766 MB / 441.9 MB, free: 77.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.8528, allocations: 359.4 kB / 442.3 MB, free: 77.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009316/0.8621, allocations: 6.406 MB / 448.7 MB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.8639, allocations: 81.03 kB / 448.8 MB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.8642, allocations: 69.5 kB / 448.9 MB, free: 73.81 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003457/0.8645, allocations: 145.1 kB / 449 MB, free: 73.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00036/0.8649, allocations: 153.8 kB / 449.1 MB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004842/0.8698, allocations: 2.207 MB / 451.3 MB, free: 72.81 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.8698, allocations: 11.81 kB / 451.4 MB, free: 72.81 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.8698, allocations: 7.844 kB / 451.4 MB, free: 72.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/0.8699, allocations: 7.266 kB / 451.4 MB, free: 72.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.8799, allocations: 4.467 MB / 455.8 MB, free: 71.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.88, allocations: 5.156 kB / 455.8 MB, free: 71.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.8813, allocations: 210.7 kB / 456.1 MB, free: 71.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/0.8837, allocations: 0.642 MB / 456.7 MB, free: 70.87 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001622/0.8838, allocations: 24.98 kB / 456.7 MB, free: 70.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.8946, allocations: 8.066 MB / 464.8 MB, free: 65.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.474e-06/0.8946, allocations: 6.719 kB / 464.8 MB, free: 65.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006214/0.9009, allocations: 3.404 MB / 468.2 MB, free: 63.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000975/0.9019, allocations: 390.1 kB / 468.6 MB, free: 63.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003151/0.9022, allocations: 15.14 kB / 468.6 MB, free: 63.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.9034, allocations: 75.03 kB / 468.7 MB, free: 63.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/0.9037, allocations: 105.5 kB / 468.8 MB, free: 63.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.9039, allocations: 44.84 kB / 468.8 MB, free: 63.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001432/0.9053, allocations: 0.7822 MB / 469.6 MB, free: 63.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.9053, allocations: 0 / 469.6 MB, free: 63.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002333/0.9077, allocations: 473.2 kB / 470.1 MB, free: 63.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006091/0.9083, allocations: 328.1 kB / 470.4 MB, free: 63.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004162/0.9125, allocations: 2.214 MB / 472.6 MB, free: 62.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.46e-06/0.9125, allocations: 3.875 kB / 472.6 MB, free: 62.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00305/0.9156, allocations: 1.442 MB / 474 MB, free: 61.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.9178, allocations: 338.8 kB / 474.4 MB, free: 61.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007681/0.9255, allocations: 3.798 MB / 478.2 MB, free: 59.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001995/0.9275, allocations: 1.884 MB / 480.1 MB, free: 58.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006282/0.9282, allocations: 114.2 kB / 480.2 MB, free: 58.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.774e-06/0.9282, allocations: 7.719 kB / 480.2 MB, free: 58.58 MB / 346.7 MB Notification: Performance of Templates: time 0.07042/0.9986, allocations: 58.38 MB / 0.5259 GB, free: 8.512 MB / 346.7 MB