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_Inverter.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_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.014/1.014, allocations: 111.2 MB / 126.8 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002671, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06477/0.06508, allocations: 25.17 MB / 183.6 MB, free: 5.871 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2339/0.299, allocations: 44.3 MB / 227.9 MB, free: 1.715 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.2993, allocations: 67.47 kB / 228 MB, free: 1.684 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1014/0.4007, allocations: 24.28 MB / 252.2 MB, free: 13.21 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4008, allocations: 0 / 252.2 MB, free: 13.21 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001536/0.4009, allocations: 35.94 kB / 252.3 MB, free: 13.18 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.006141/0.4071, allocations: 1.589 MB / 253.9 MB, free: 11.62 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.4072, allocations: 12.02 kB / 253.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008321/0.408, allocations: 206 kB / 254.1 MB, free: 11.48 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004806/0.4085, allocations: 150.2 kB / 254.2 MB, free: 11.34 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002658/0.4112, allocations: 0.868 MB / 255.1 MB, free: 10.62 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.4114, allocations: 100.8 kB / 255.2 MB, free: 10.56 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004785/0.4119, allocations: 125.8 kB / 255.3 MB, free: 10.48 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006919/0.4188, allocations: 1.803 MB / 257.1 MB, free: 8.68 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.4e-05/0.4189, allocations: 7.844 kB / 257.1 MB, free: 8.672 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003128/0.4193, allocations: 52 kB / 257.2 MB, free: 8.621 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.4194, allocations: 66.59 kB / 257.2 MB, free: 8.555 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007071/0.4265, allocations: 1.506 MB / 258.8 MB, free: 7.043 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01925/0.4458, allocations: 4.784 MB / 263.5 MB, free: 2.172 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005071/0.4509, allocations: 1.52 MB / 265.1 MB, free: 0.5273 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.4511, allocations: 12.64 kB / 265.1 MB, free: 0.5156 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/0.4512, allocations: 51.2 kB / 265.1 MB, free: 468 kB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 5.33e-06/0.4512, allocations: 3.938 kB / 265.1 MB, free: 464 kB / 202.7 MB Notification: Performance of matching and sorting (n=98): time 0.03634/0.4876, allocations: 6.496 MB / 271.6 MB, free: 9.812 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.4877, allocations: 72.34 kB / 271.7 MB, free: 9.73 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: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.001826/0.4895, allocations: 0.5822 MB / 272.3 MB, free: 9.145 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001966/0.4897, allocations: 41.7 kB / 272.3 MB, free: 9.098 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006182/0.4904, allocations: 0.5603 MB / 272.9 MB, free: 8.531 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005824/0.491, allocations: 343 kB / 273.2 MB, free: 8.191 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.4911, allocations: 16 kB / 273.2 MB, free: 8.176 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.4914, allocations: 354.8 kB / 273.6 MB, free: 7.82 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/0.4939, allocations: 0.6071 MB / 274.2 MB, free: 7.215 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002967/0.4969, allocations: 0.6951 MB / 274.9 MB, free: 6.496 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002897/0.4999, allocations: 0.7154 MB / 275.6 MB, free: 5.785 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.5, allocations: 0 / 275.6 MB, free: 5.785 MB / 218.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.008964/0.509, allocations: 2.078 MB / 277.7 MB, free: 3.688 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.509, allocations: 4 kB / 277.7 MB, free: 3.684 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.5091, allocations: 4 kB / 277.7 MB, free: 3.68 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003346/0.5124, allocations: 0.7025 MB / 278.4 MB, free: 2.965 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.5139, allocations: 163.8 kB / 278.5 MB, free: 2.805 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/0.5315, allocations: 8.871 MB / 287.4 MB, free: 9.531 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.5327, allocations: 79.97 kB / 287.5 MB, free: 9.453 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.5329, allocations: 31.98 kB / 287.5 MB, free: 9.422 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: 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.inertiaRotor.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 75 * 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 {(5,92.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001438/0.5343, allocations: 0.5135 MB / 288 MB, free: 8.902 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.5346, allocations: 75.06 kB / 288.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006711/0.5413, allocations: 2.137 MB / 290.2 MB, free: 6.672 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/0.5414, allocations: 12 kB / 290.3 MB, free: 6.66 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.5414, allocations: 4 kB / 290.3 MB, free: 6.656 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-05/0.5415, allocations: 8.422 kB / 290.3 MB, free: 6.648 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.5535, allocations: 3.904 MB / 294.2 MB, free: 2.664 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5535, allocations: 3.938 kB / 294.2 MB, free: 2.66 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.5549, allocations: 143.9 kB / 294.3 MB, free: 2.52 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003469/0.5584, allocations: 0.7373 MB / 295 MB, free: 1.77 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/0.5586, allocations: 23.98 kB / 295.1 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1719/0.7306, allocations: 8.692 MB / 303.8 MB, free: 59.58 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7306, allocations: 0 / 303.8 MB, free: 59.58 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008333/0.739, allocations: 3.035 MB / 306.8 MB, free: 59.34 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008511/0.7399, allocations: 289.9 kB / 307.1 MB, free: 59.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.7401, allocations: 24.66 kB / 307.1 MB, free: 59.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.7412, allocations: 76.58 kB / 307.2 MB, free: 59.25 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/0.7416, allocations: 87.22 kB / 307.3 MB, free: 59.24 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.7417, allocations: 27.97 kB / 307.3 MB, free: 59.24 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008701/0.7426, allocations: 446.5 kB / 307.7 MB, free: 59.15 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7426, allocations: 1.203 kB / 307.7 MB, free: 59.15 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001883/0.7445, allocations: 336.1 kB / 308.1 MB, free: 59.15 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * 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 (68): * Single equations (assignments): 64 * 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 {(7,69.4%) 21,(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.008702/0.7532, allocations: 3.741 MB / 311.8 MB, free: 58.23 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006122/0.7594, allocations: 2.191 MB / 314 MB, free: 57.52 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.7595, allocations: 0 / 314 MB, free: 57.52 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004189/0.7637, allocations: 1.539 MB / 315.5 MB, free: 56.71 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.7656, allocations: 180.8 kB / 315.7 MB, free: 56.67 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009437/0.775, allocations: 5.205 MB / 320.9 MB, free: 53.54 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001261/0.7763, allocations: 1.443 MB / 322.4 MB, free: 52.68 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009847/0.7773, allocations: 448.6 kB / 322.8 MB, free: 52.33 MB / 234.7 MB Notification: Performance of SimCode: time 1.733e-06/0.7774, allocations: 0 / 322.8 MB, free: 52.33 MB / 234.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: aimc.Jr. [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 2.898223593858831 / (6.283185307179586 * aimc.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.1017764061411688 / (6.283185307179586 * aimc.fsNominal).