Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AIMC_DOL,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.104/1.104, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.67e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.177, allocations: 25.15 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08182/0.2588, allocations: 45.55 MB / 225.1 MB, free: 3.523 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.2591, allocations: 67.97 kB / 225.1 MB, free: 3.457 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2734/0.5326, allocations: 28.47 MB / 253.6 MB, free: 45.33 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5327, allocations: 0 / 253.6 MB, free: 45.33 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.5329, allocations: 43.44 kB / 253.7 MB, free: 45.33 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.007883/0.5408, allocations: 1.739 MB / 255.4 MB, free: 44.54 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.5409, allocations: 7.844 kB / 255.4 MB, free: 44.54 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009749/0.5419, allocations: 230.8 kB / 255.6 MB, free: 44.48 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008959/0.5428, allocations: 197 kB / 255.8 MB, free: 44.39 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005042/0.5479, allocations: 1.11 MB / 256.9 MB, free: 44.04 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.5482, allocations: 114.7 kB / 257 MB, free: 44.04 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000893/0.5491, allocations: 150.8 kB / 257.2 MB, free: 44.04 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008824/0.558, allocations: 2.101 MB / 259.3 MB, free: 43.31 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.5581, allocations: 6.031 kB / 259.3 MB, free: 43.31 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004496/0.5586, allocations: 66.25 kB / 259.4 MB, free: 43.27 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.5588, allocations: 59.52 kB / 259.4 MB, free: 43.26 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007594/0.5664, allocations: 1.762 MB / 261.2 MB, free: 42.6 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/0.5895, allocations: 5.973 MB / 267.2 MB, free: 38.75 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004922/0.5945, allocations: 1.967 MB / 269.1 MB, free: 36.77 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/0.5977, allocations: 0.8473 MB / 270 MB, free: 36.03 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001789/0.5979, allocations: 15.59 kB / 270 MB, free: 36.02 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.294e-05/0.598, allocations: 46.94 kB / 270 MB, free: 35.96 MB / 202.7 MB Notification: Performance of pre-optimization done (n=94): time 5.66e-06/0.598, allocations: 0 / 270 MB, free: 35.96 MB / 202.7 MB Notification: Performance of matching and sorting (n=114): time 0.02687/0.6249, allocations: 5.89 MB / 275.9 MB, free: 30.39 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.625, allocations: 64.41 kB / 276 MB, free: 30.31 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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.002198/0.6272, allocations: 0.8694 MB / 276.8 MB, free: 29.43 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003077/0.6276, allocations: 45.7 kB / 276.9 MB, free: 29.38 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/0.6281, allocations: 0.6502 MB / 277.5 MB, free: 28.73 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005711/0.6287, allocations: 394.1 kB / 277.9 MB, free: 28.34 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.6288, allocations: 23.94 kB / 278 MB, free: 28.32 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.6289, allocations: 350.8 kB / 278.3 MB, free: 27.97 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.6305, allocations: 0.6621 MB / 279 MB, free: 27.31 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.6323, allocations: 0.7555 MB / 279.7 MB, free: 26.54 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.6341, allocations: 0.7729 MB / 280.5 MB, free: 25.76 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.6342, allocations: 4 kB / 280.5 MB, free: 25.76 MB / 202.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00608/0.6403, allocations: 2.16 MB / 282.6 MB, free: 23.58 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.6403, allocations: 7.938 kB / 282.7 MB, free: 23.57 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.6404, allocations: 4 kB / 282.7 MB, free: 23.57 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002909/0.6433, allocations: 0.6603 MB / 283.3 MB, free: 22.9 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.645, allocations: 207.7 kB / 283.5 MB, free: 22.7 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/0.6582, allocations: 8.146 MB / 291.7 MB, free: 14.16 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.6598, allocations: 83.94 kB / 291.8 MB, free: 14.08 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/0.66, allocations: 35.98 kB / 291.8 MB, free: 14.04 MB / 202.7 MB Warning: Assuming fixed start value for the following 7 variables: quadraticLoadTorque.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real loadInertia.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.i_0_s:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete 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.0004306/0.6605, allocations: 183.2 kB / 292 MB, free: 13.86 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.6608, allocations: 110.6 kB / 292.1 MB, free: 13.75 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006424/0.6673, allocations: 2.241 MB / 294.3 MB, free: 11.49 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-05/0.6673, allocations: 12 kB / 294.3 MB, free: 11.48 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.6674, allocations: 4 kB / 294.3 MB, free: 11.47 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.962e-05/0.6674, allocations: 7.984 kB / 294.3 MB, free: 11.46 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.6795, allocations: 4.31 MB / 298.6 MB, free: 7.102 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/0.6796, allocations: 0 / 298.6 MB, free: 7.102 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.6812, allocations: 179.9 kB / 298.8 MB, free: 6.926 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003162/0.6844, allocations: 0.6985 MB / 299.5 MB, free: 6.215 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002708/0.6847, allocations: 27.98 kB / 299.6 MB, free: 6.188 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/0.6986, allocations: 7.992 MB / 307.5 MB, free: 13.8 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.6986, allocations: 4.031 kB / 307.5 MB, free: 13.8 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009713/0.7083, allocations: 3.297 MB / 310.8 MB, free: 10.44 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/0.7097, allocations: 347.7 kB / 311.2 MB, free: 10.08 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004159/0.7102, allocations: 27.98 kB / 311.2 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.7118, allocations: 91.09 kB / 311.3 MB, free: 9.969 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005911/0.7124, allocations: 104.6 kB / 311.4 MB, free: 9.863 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/0.7126, allocations: 35.89 kB / 311.4 MB, free: 9.828 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001776/0.7144, allocations: 0.6514 MB / 312.1 MB, free: 9.18 MB / 218.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.7144, allocations: 4 kB / 312.1 MB, free: 9.176 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.002289/0.7167, allocations: 380 kB / 312.5 MB, free: 8.805 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 82 * 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.01041/0.7272, allocations: 4.153 MB / 316.6 MB, free: 4.586 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.006805/0.7341, allocations: 2.285 MB / 318.9 MB, free: 2.242 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.7341, allocations: 0 / 318.9 MB, free: 2.242 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004999/0.7391, allocations: 1.541 MB / 320.4 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/0.7426, allocations: 270.2 kB / 320.7 MB, free: 392 kB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.7582, allocations: 3.668 MB / 324.4 MB, free: 12.68 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003921/0.7622, allocations: 1.635 MB / 326 MB, free: 11.01 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/0.7644, allocations: 0.5422 MB / 326.6 MB, free: 10.46 MB / 234.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7645, allocations: 0 / 326.6 MB, free: 10.46 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.642/4.407, allocations: 57.79 MB / 384.3 MB, free: 34.81 MB / 234.7 MB