Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.AIMC_DOL.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.AIMC_DOL") Notification: Performance of loadModel(Modelica): time 1.022/1.022, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002745, allocations: 11.94 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04608/0.04638, allocations: 25.16 MB / 183.5 MB, free: 5.977 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1907/0.2371, allocations: 45.64 MB / 229.1 MB, free: 0.875 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.2373, allocations: 71.69 kB / 229.2 MB, free: 0.8398 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.152/0.3893, allocations: 28.39 MB / 257.6 MB, free: 8.449 MB / 202.7 MB Notification: Performance of FrontEnd: time 5.772e-06/0.3894, allocations: 4 kB / 257.6 MB, free: 8.445 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.3895, allocations: 43.92 kB / 257.6 MB, free: 8.402 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 390 * Number of variables: 390 Notification: Performance of Generate backend data structure: time 0.005569/0.3951, allocations: 1.896 MB / 259.5 MB, free: 6.449 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3952, allocations: 12.03 kB / 259.5 MB, free: 6.438 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007859/0.396, allocations: 185.8 kB / 259.7 MB, free: 6.254 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003144/0.3991, allocations: 1.11 MB / 260.8 MB, free: 5.098 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.3994, allocations: 115 kB / 261 MB, free: 4.984 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005457/0.3999, allocations: 155.9 kB / 261.1 MB, free: 4.832 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005929/0.4059, allocations: 2.145 MB / 263.2 MB, free: 2.605 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.562e-05/0.406, allocations: 4 kB / 263.3 MB, free: 2.602 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002483/0.4062, allocations: 64 kB / 263.3 MB, free: 2.539 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.4064, allocations: 71.03 kB / 263.4 MB, free: 2.469 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005236/0.4116, allocations: 1.839 MB / 265.2 MB, free: 0.625 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01455/0.4262, allocations: 5.987 MB / 271.2 MB, free: 10.52 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003691/0.4299, allocations: 2.019 MB / 273.2 MB, free: 8.312 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.4301, allocations: 12.98 kB / 273.2 MB, free: 8.301 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.4301, allocations: 47.5 kB / 273.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of pre-optimization done (n=94): time 4.136e-06/0.4301, allocations: 0 / 273.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of matching and sorting (n=114): time 0.02251/0.4527, allocations: 6.954 MB / 280.2 MB, free: 1.172 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.4528, allocations: 68.41 kB / 280.3 MB, free: 1.094 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1627:7-1628:56:writable] Warning: Parameter idealCloser.Goff[3] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1627:7-1628:56:writable] Warning: Parameter idealCloser.Goff[2] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1627:7-1628:56:writable] Warning: Parameter idealCloser.Goff[1] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1625:7-1626:55:writable] Warning: Parameter idealCloser.Ron[3] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1625:7-1626:55:writable] Warning: Parameter idealCloser.Ron[2] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/MultiPhase.mo:1625:7-1626:55:writable] Warning: Parameter idealCloser.Ron[1] has no value, and is fixed during initialization (fixed=true), using available start value (start=1e-05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1719:9-1721:75:writable] Warning: Parameter aimc.Rr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1716:9-1718:75:writable] Warning: Parameter aimc.Lrsigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1713:9-1715:75:writable] Warning: Parameter aimc.Lm has no value, and is fixed during initialization (fixed=true), using available start value (start=2.898223593858831 / (6.283185307179586 * aimc.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7411:7-7413:73:writable] Warning: Parameter aimc.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7408:7-7410:73:writable] Warning: Parameter aimc.Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7406:7-7407:28:writable] Warning: Parameter aimc.fsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7405:7-7405:75:writable] Warning: Parameter aimc.p has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter aimc.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=aimc.Jr) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter aimc.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.29) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.4548, allocations: 0.8753 MB / 281.2 MB, free: 220 kB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002332/0.4551, allocations: 45.7 kB / 281.2 MB, free: 168 kB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006435/0.4557, allocations: 0.6503 MB / 281.9 MB, free: 15.5 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/0.4563, allocations: 394.2 kB / 282.3 MB, free: 15.11 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.4564, allocations: 24 kB / 282.3 MB, free: 15.09 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002251/0.4566, allocations: 354.8 kB / 282.6 MB, free: 14.73 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.4584, allocations: 0.6971 MB / 283.3 MB, free: 14.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.4602, allocations: 0.7975 MB / 284.1 MB, free: 13.22 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.4622, allocations: 0.8063 MB / 284.9 MB, free: 12.42 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.4623, allocations: 0 / 284.9 MB, free: 12.42 MB / 234.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005828/0.4681, allocations: 2.246 MB / 287.2 MB, free: 10.15 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.4682, allocations: 4 kB / 287.2 MB, free: 10.15 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4682, allocations: 0 / 287.2 MB, free: 10.15 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.4707, allocations: 0.6649 MB / 287.8 MB, free: 9.473 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.472, allocations: 207.7 kB / 288.1 MB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/0.4865, allocations: 8.372 MB / 296.4 MB, free: 500 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4876, allocations: 83.91 kB / 296.5 MB, free: 416 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.4877, allocations: 28 kB / 296.5 MB, free: 388 kB / 234.7 MB Warning: Assuming fixed start value for the following 7 variables: quadraticLoadTorque.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real loadInertia.w:VARIABLE(unit = "rad/s" fixed = true ) "Absolute angular velocity of component (= der(phi))" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.i_0_s:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * 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): 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 {(4,87.5%) 23,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1307/0.6184, allocations: 0.6222 MB / 297.2 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/0.6188, allocations: 106.8 kB / 297.3 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005435/0.6242, allocations: 2.337 MB / 299.6 MB, free: 59.6 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.6243, allocations: 11.03 kB / 299.6 MB, free: 59.6 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.6243, allocations: 3.5 kB / 299.6 MB, free: 59.6 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-05/0.6243, allocations: 11.19 kB / 299.6 MB, free: 59.6 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.6344, allocations: 4.368 MB / 304 MB, free: 59.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.6345, allocations: 0 / 304 MB, free: 59.2 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.6356, allocations: 177.8 kB / 304.2 MB, free: 59.2 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/0.6381, allocations: 0.6927 MB / 304.9 MB, free: 59.16 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001911/0.6383, allocations: 27.34 kB / 304.9 MB, free: 59.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.65, allocations: 8.221 MB / 313.1 MB, free: 55.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.924e-06/0.65, allocations: 1.406 kB / 313.1 MB, free: 55.34 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007294/0.6573, allocations: 3.389 MB / 316.5 MB, free: 54.18 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008801/0.6583, allocations: 355.2 kB / 316.8 MB, free: 54 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.6585, allocations: 26.72 kB / 316.9 MB, free: 53.99 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008718/0.6594, allocations: 87.14 kB / 317 MB, free: 53.97 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.6598, allocations: 96.73 kB / 317 MB, free: 53.96 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.6599, allocations: 36.58 kB / 317.1 MB, free: 53.95 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001066/0.661, allocations: 0.6579 MB / 317.7 MB, free: 53.69 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.13e-07/0.661, allocations: 5.922 kB / 317.7 MB, free: 53.69 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00165/0.6626, allocations: 379.1 kB / 318.1 MB, free: 53.65 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * 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 {(4,87.5%) 23,(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.0002706/0.6629, allocations: 150.1 kB / 318.3 MB, free: 53.55 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004562/0.6675, allocations: 2.372 MB / 320.6 MB, free: 52.47 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.633e-06/0.6676, allocations: 3.719 kB / 320.6 MB, free: 52.47 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.6707, allocations: 1.588 MB / 322.2 MB, free: 51.66 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.6724, allocations: 265.2 kB / 322.5 MB, free: 51.59 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0071/0.6795, allocations: 4.478 MB / 327 MB, free: 49.25 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/0.681, allocations: 1.635 MB / 328.6 MB, free: 48.36 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004854/0.6815, allocations: 73.67 kB / 328.7 MB, free: 48.35 MB / 234.7 MB Notification: Performance of SimCode: time 3.472e-06/0.6815, allocations: 3.25 kB / 328.7 MB, free: 48.35 MB / 234.7 MB Notification: Performance of Templates: time 0.06127/0.7428, allocations: 49.05 MB / 377.7 MB, free: 8.035 MB / 234.7 MB