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/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.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.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.816e-05/1.82e-05, allocations: 0 / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06842/0.06847, allocations: 38.77 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3152/0.3837, allocations: 95.11 MB / 356.4 MB, free: 9.516 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.384, allocations: 85.83 kB / 356.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1806/0.5647, allocations: 44.93 MB / 401.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5647, allocations: 3.938 kB / 401.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002246/0.5649, allocations: 59.94 kB / 401.5 MB, free: 15.36 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.006615/0.5716, allocations: 2.227 MB / 403.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.5716, allocations: 8.031 kB / 403.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.5731, allocations: 292.8 kB / 404 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004209/0.5773, allocations: 1.483 MB / 405.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.5775, allocations: 76 kB / 405.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006635/0.5782, allocations: 131.9 kB / 405.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005686/0.5839, allocations: 2 MB / 407.7 MB, free: 9.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00695/0.5909, allocations: 2.402 MB / 410.1 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.11e-05/0.591, allocations: 7.953 kB / 410.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002613/0.5913, allocations: 7.984 kB / 410.1 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.5914, allocations: 96.17 kB / 410.2 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.224/0.8155, allocations: 8.129 MB / 418.3 MB, free: 84.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.8182, allocations: 1.636 MB / 419.9 MB, free: 84.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.8198, allocations: 0.7507 MB / 420.7 MB, free: 84.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/0.8201, allocations: 138.6 kB / 420.8 MB, free: 84.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.8202, allocations: 46.83 kB / 420.9 MB, free: 84.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 4.714e-06/0.8202, allocations: 0 / 420.9 MB, free: 84.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01231/0.8325, allocations: 4.713 MB / 425.6 MB, free: 83.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.8326, allocations: 65.77 kB / 425.7 MB, free: 83.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.8346, allocations: 0.9623 MB / 426.6 MB, free: 83.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001945/0.8348, allocations: 26.95 kB / 426.6 MB, free: 83.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006398/0.8355, allocations: 0.9936 MB / 427.6 MB, free: 82.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004153/0.8359, allocations: 425.3 kB / 428.1 MB, free: 82.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.836, allocations: 3.031 kB / 428.1 MB, free: 82.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.8361, allocations: 368.1 kB / 428.4 MB, free: 82.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.8375, allocations: 0.6671 MB / 429.1 MB, free: 82.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.839, allocations: 1.03 MB / 430.1 MB, free: 81.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.8407, allocations: 0.8456 MB / 431 MB, free: 81.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.8407, allocations: 3.25 kB / 431 MB, free: 81.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.004911/0.8457, allocations: 2.252 MB / 433.2 MB, free: 81.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.8457, allocations: 8.844 kB / 433.2 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.8458, allocations: 15.81 kB / 433.2 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.8477, allocations: 0.5773 MB / 433.8 MB, free: 81.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.8493, allocations: 331.7 kB / 434.1 MB, free: 81.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/0.858, allocations: 6.057 MB / 440.2 MB, free: 79.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.8596, allocations: 83.55 kB / 440.3 MB, free: 79.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/0.8598, allocations: 63.89 kB / 440.3 MB, free: 79.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * 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: 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003271/0.8602, allocations: 140.2 kB / 440.5 MB, free: 79.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.8605, allocations: 142.7 kB / 440.6 MB, free: 79.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004691/0.8652, allocations: 2.152 MB / 442.8 MB, free: 78.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.8653, allocations: 11.41 kB / 442.8 MB, free: 78.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.8653, allocations: 3.969 kB / 442.8 MB, free: 78.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.8653, allocations: 10.81 kB / 442.8 MB, free: 78.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009508/0.8749, allocations: 4.283 MB / 447.1 MB, free: 77.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.8749, allocations: 3.688 kB / 447.1 MB, free: 77.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.8761, allocations: 210.3 kB / 447.3 MB, free: 77.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.8783, allocations: 0.6261 MB / 447.9 MB, free: 77.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/0.8785, allocations: 16.78 kB / 447.9 MB, free: 77.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009856/0.8884, allocations: 7.724 MB / 455.7 MB, free: 71.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.8884, allocations: 3.938 kB / 455.7 MB, free: 71.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/0.899, allocations: 3.276 MB / 458.9 MB, free: 70.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/0.9007, allocations: 375.9 kB / 459.3 MB, free: 70.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005852/0.9013, allocations: 13.12 kB / 459.3 MB, free: 70.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.9034, allocations: 76.62 kB / 459.4 MB, free: 70.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004652/0.9039, allocations: 95.39 kB / 459.5 MB, free: 70.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/0.9042, allocations: 39.78 kB / 459.5 MB, free: 70.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0021/0.9063, allocations: 0.7215 MB / 460.2 MB, free: 69.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.494e-06/0.9063, allocations: 2.594 kB / 460.2 MB, free: 69.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00365/0.91, allocations: 444.7 kB / 460.7 MB, free: 69.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * 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,75.0%) 22,(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.0008647/0.9109, allocations: 295.3 kB / 461 MB, free: 69.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006736/0.9177, allocations: 2.153 MB / 463.1 MB, free: 68.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.837e-06/0.9177, allocations: 2.953 kB / 463.1 MB, free: 68.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004684/0.9224, allocations: 1.421 MB / 464.5 MB, free: 68.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/0.9257, allocations: 284.5 kB / 464.8 MB, free: 67.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.9382, allocations: 3.622 MB / 468.4 MB, free: 66.42 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003403/0.9416, allocations: 1.836 MB / 470.3 MB, free: 65.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.9428, allocations: 111.3 kB / 470.4 MB, free: 65.5 MB / 346.7 MB Notification: Performance of SimCode: time 3.209e-06/0.9428, allocations: 0 / 470.4 MB, free: 65.5 MB / 346.7 MB Notification: Performance of Templates: time 0.072/1.015, allocations: 54.41 MB / 0.5125 GB, free: 22.41 MB / 346.7 MB