Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004709/0.000471, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09791, allocations: 44.5 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.443/0.541, allocations: 100.9 MB / 409.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.5414, allocations: 92.27 kB / 410 MB, free: 12.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1918/0.7332, allocations: 45.86 MB / 455.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.175e-06/0.7332, allocations: 0 / 455.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002872/0.7335, allocations: 67.81 kB / 455.9 MB, free: 15.71 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: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.01046/0.744, allocations: 2.47 MB / 458.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.7441, allocations: 8.031 kB / 458.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001879/0.746, allocations: 292.8 kB / 458.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00601/0.752, allocations: 1.58 MB / 460.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/0.7523, allocations: 157.1 kB / 460.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009219/0.7532, allocations: 211.7 kB / 460.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009461/0.7627, allocations: 2.776 MB / 463.4 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.7629, allocations: 11.89 kB / 463.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003983/0.7633, allocations: 91.98 kB / 463.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.7635, allocations: 96.16 kB / 463.6 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00837/0.7719, allocations: 2.23 MB / 465.8 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02601/0.7979, allocations: 8.577 MB / 474.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004636/0.8026, allocations: 1.74 MB / 476.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005694/0.8032, allocations: 219.2 kB / 476.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/0.8033, allocations: 47.55 kB / 476.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=103): time 3.737e-06/0.8033, allocations: 0 / 476.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.04238/0.8457, allocations: 7.133 MB / 483.6 MB, free: 4.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.8458, allocations: 64.41 kB / 483.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005225/0.8511, allocations: 1.397 MB / 485 MB, free: 2.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004391/0.8516, allocations: 45.7 kB / 485.1 MB, free: 2.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.8531, allocations: 0.9798 MB / 486 MB, free: 1.824 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.8541, allocations: 429.8 kB / 486.5 MB, free: 1.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.8545, allocations: 36 kB / 486.5 MB, free: 1.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003035/0.8548, allocations: 370.8 kB / 486.9 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/0.8586, allocations: 0.7379 MB / 487.6 MB, free: 260 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004377/0.8631, allocations: 1.126 MB / 488.7 MB, free: 14.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004374/0.8675, allocations: 0.9198 MB / 489.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-05/0.8676, allocations: 0 / 489.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.0132/0.8808, allocations: 2.498 MB / 492.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/0.8809, allocations: 15.94 kB / 492.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.054e-05/0.881, allocations: 8 kB / 492.2 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004261/0.8853, allocations: 0.5845 MB / 492.7 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004126/0.8894, allocations: 335.5 kB / 493.1 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02092/0.9104, allocations: 6.543 MB / 499.6 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.914, allocations: 107.9 kB / 499.7 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005196/0.9145, allocations: 60 kB / 499.8 MB, free: 3.617 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (156): * Single equations (assignments): 153 * 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.003197/0.9178, allocations: 0.6886 MB / 0.4887 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008554/0.9186, allocations: 170 kB / 0.4889 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/0.9308, allocations: 2.366 MB / 0.4912 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.222e-05/0.9309, allocations: 12 kB / 0.4912 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/0.931, allocations: 4 kB / 0.4912 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.912e-05/0.9311, allocations: 7.969 kB / 0.4912 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/0.9543, allocations: 4.755 MB / 0.4959 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-05/0.9544, allocations: 3.984 kB / 0.4959 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002871/0.9572, allocations: 208 kB / 0.4961 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005039/0.9623, allocations: 0.6348 MB / 0.4967 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003803/0.9628, allocations: 31.98 kB / 0.4967 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02485/0.9877, allocations: 8.323 MB / 0.5049 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.9877, allocations: 0 / 0.5049 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/1.003, allocations: 3.393 MB / 0.5082 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.006, allocations: 395 kB / 0.5086 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008617/1.007, allocations: 32 kB / 0.5086 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002992/1.01, allocations: 87.89 kB / 0.5087 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007212/1.01, allocations: 100.8 kB / 0.5088 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/1.011, allocations: 43.98 kB / 0.5088 GB, free: 13.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003921/1.015, allocations: 0.9531 MB / 0.5097 GB, free: 12.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.015, allocations: 0 / 0.5097 GB, free: 12.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00424/1.019, allocations: 0.5156 MB / 0.5102 GB, free: 12.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (96): * Single equations (assignments): 93 * 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%) 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.001246/1.02, allocations: 304.7 kB / 0.5105 GB, free: 11.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01172/1.032, allocations: 2.36 MB / 0.5128 GB, free: 9.582 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.032, allocations: 0.8125 kB / 0.5128 GB, free: 9.582 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007772/1.04, allocations: 1.521 MB / 0.5143 GB, free: 8.023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005386/1.045, allocations: 380.8 kB / 0.5147 GB, free: 7.652 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/1.067, allocations: 5.402 MB / 0.52 GB, free: 2.195 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00425/1.071, allocations: 1.843 MB / 0.5218 GB, free: 324 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/1.073, allocations: 115.4 kB / 0.5219 GB, free: 208 kB / 410.7 MB Notification: Performance of SimCode: time 1.834e-06/1.073, allocations: 4 kB / 0.5219 GB, free: 204 kB / 410.7 MB Notification: Performance of Templates: time 0.4365/1.509, allocations: 56.54 MB / 0.5771 GB, free: 94.61 MB / 410.7 MB