Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SMR_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9623/0.9623, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.471e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1693, allocations: 25.15 MB / 176.6 MB, free: 44 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07828/0.2476, allocations: 46.05 MB / 222.7 MB, free: 3.395 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.248, allocations: 63.97 kB / 222.8 MB, free: 3.332 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1185/0.3665, allocations: 28.75 MB / 251.5 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3665, allocations: 0 / 251.5 MB, free: 6.406 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001286/0.3667, allocations: 43.94 kB / 251.5 MB, free: 6.363 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 416 * Number of variables: 416 Notification: Performance of Generate backend data structure: time 0.005699/0.3724, allocations: 1.757 MB / 253.3 MB, free: 4.555 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.3725, allocations: 12.03 kB / 253.3 MB, free: 4.543 MB / 218.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006118/0.3731, allocations: 240.5 kB / 253.6 MB, free: 4.297 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005221/0.3736, allocations: 193.7 kB / 253.7 MB, free: 4.105 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002928/0.3766, allocations: 1.051 MB / 254.8 MB, free: 3.008 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3767, allocations: 119.5 kB / 254.9 MB, free: 2.891 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004248/0.3772, allocations: 156 kB / 255.1 MB, free: 2.738 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005808/0.383, allocations: 2.118 MB / 257.2 MB, free: 0.5469 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.117e-05/0.3831, allocations: 11.91 kB / 257.2 MB, free: 0.5352 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002747/0.3834, allocations: 64 kB / 257.3 MB, free: 484 kB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.3835, allocations: 75.25 kB / 257.3 MB, free: 408 kB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1505/0.534, allocations: 1.732 MB / 259.1 MB, free: 52.41 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01511/0.5491, allocations: 6.102 MB / 265.2 MB, free: 51.59 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003034/0.5522, allocations: 1.861 MB / 267 MB, free: 50.71 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.5537, allocations: 0.6723 MB / 267.7 MB, free: 50.7 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.001e-05/0.5538, allocations: 18.05 kB / 267.7 MB, free: 50.7 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.5539, allocations: 42.81 kB / 267.8 MB, free: 50.66 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 3.787e-06/0.5539, allocations: 0 / 267.8 MB, free: 50.66 MB / 218.7 MB Notification: Performance of matching and sorting (n=111): time 0.0197/0.5736, allocations: 5.472 MB / 273.2 MB, free: 49.22 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.5737, allocations: 63.53 kB / 273.3 MB, free: 49.16 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7706:7-7708:33:writable] Warning: Parameter terminalBox.terminalConnection has no value, and is fixed during initialization (fixed=true), using available start value (start="Y") as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Mechanics/Rotational.mo:4773:7-4774:27:writable] Warning: Parameter loadTorqueStep.offsetTorque has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2609:9-2611:75:writable] Warning: Parameter smr.Rrd 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:2603:9-2605:75:writable] Warning: Parameter smr.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2600:9-2602:51:writable] Warning: Parameter smr.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2597:9-2599:75:writable] Warning: Parameter smr.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2594:9-2596:75:writable] Warning: Parameter smr.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=2.9 / (6.283185307179586 * smr.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 smr.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smr.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 smr.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 smr.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 smr.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 smr.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smr.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 smr.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.001414/0.5751, allocations: 0.7229 MB / 274 MB, free: 48.86 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.5753, allocations: 41.45 kB / 274.1 MB, free: 48.82 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000373/0.5757, allocations: 0.69 MB / 274.7 MB, free: 48.28 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004019/0.5761, allocations: 386.1 kB / 275.1 MB, free: 47.99 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.5762, allocations: 23.31 kB / 275.1 MB, free: 47.97 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.5763, allocations: 356.7 kB / 275.5 MB, free: 47.64 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.5776, allocations: 0.6217 MB / 276.1 MB, free: 47.41 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.579, allocations: 0.7767 MB / 276.9 MB, free: 47.04 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.5806, allocations: 0.7502 MB / 277.6 MB, free: 46.75 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.5806, allocations: 3.969 kB / 277.6 MB, free: 46.75 MB / 218.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.005181/0.5858, allocations: 2.121 MB / 279.8 MB, free: 46.01 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.5858, allocations: 7.531 kB / 279.8 MB, free: 46.01 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.5859, allocations: 11.12 kB / 279.8 MB, free: 46.01 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002602/0.5885, allocations: 0.6301 MB / 280.4 MB, free: 45.84 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.5902, allocations: 217.2 kB / 280.6 MB, free: 45.83 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.6033, allocations: 8.578 MB / 289.2 MB, free: 40.02 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.6048, allocations: 89.38 kB / 289.3 MB, free: 40 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.6049, allocations: 39.75 kB / 289.3 MB, free: 39.98 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real smr.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 100 * 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,80.6%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.6053, allocations: 183 kB / 289.5 MB, free: 39.83 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.6056, allocations: 98.78 kB / 289.6 MB, free: 39.73 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005302/0.6109, allocations: 2.138 MB / 291.7 MB, free: 37.95 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.6109, allocations: 15.56 kB / 291.8 MB, free: 37.94 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.6109, allocations: 8 kB / 291.8 MB, free: 37.93 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/0.611, allocations: 7.219 kB / 291.8 MB, free: 37.93 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.6213, allocations: 4.183 MB / 296 MB, free: 34.48 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.6213, allocations: 7.125 kB / 296 MB, free: 34.48 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.6227, allocations: 167 kB / 296.1 MB, free: 34.34 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/0.6254, allocations: 0.6426 MB / 296.8 MB, free: 33.84 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.6256, allocations: 31.75 kB / 296.8 MB, free: 33.81 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/0.6383, allocations: 8.41 MB / 305.2 MB, free: 25.8 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.6384, allocations: 4 kB / 305.2 MB, free: 25.8 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00679/0.6452, allocations: 3.123 MB / 308.3 MB, free: 23 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008336/0.6461, allocations: 317.4 kB / 308.6 MB, free: 22.7 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/0.6463, allocations: 34.98 kB / 308.7 MB, free: 22.67 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.6475, allocations: 88.94 kB / 308.8 MB, free: 22.61 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003327/0.6479, allocations: 84.97 kB / 308.8 MB, free: 22.56 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.648, allocations: 38.42 kB / 308.9 MB, free: 22.53 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0009298/0.6489, allocations: 0.5423 MB / 309.4 MB, free: 22.04 MB / 218.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6489, allocations: 0 / 309.4 MB, free: 22.04 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.00159/0.6505, allocations: 377.1 kB / 309.8 MB, free: 21.68 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_rr[1],smr.idq_rr[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 (84): * 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): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,80.6%) 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.007003/0.6575, allocations: 4.041 MB / 313.8 MB, free: 17.68 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.004832/0.6624, allocations: 2.094 MB / 315.9 MB, free: 15.56 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.6625, allocations: 4.938 kB / 315.9 MB, free: 15.55 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00341/0.6659, allocations: 1.389 MB / 317.3 MB, free: 14.14 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.6679, allocations: 205.4 kB / 317.5 MB, free: 13.95 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007857/0.6757, allocations: 3.528 MB / 321.1 MB, free: 10.4 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.6772, allocations: 1.6 MB / 322.7 MB, free: 8.773 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.6783, allocations: 0.5422 MB / 323.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6784, allocations: 0 / 323.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.38/4.058, allocations: 47.81 MB / 371 MB, free: 56.84 MB / 234.7 MB