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.062/1.062, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003543, allocations: 15.98 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06517/0.06557, allocations: 25.16 MB / 183.6 MB, free: 5.887 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/0.2985, allocations: 45.64 MB / 229.2 MB, free: 0.8086 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.2987, allocations: 68.28 kB / 229.3 MB, free: 0.7734 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1186/0.4173, allocations: 28.39 MB / 257.7 MB, free: 8.379 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4174, allocations: 0 / 257.7 MB, free: 8.379 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001736/0.4176, allocations: 43.94 kB / 257.7 MB, free: 8.336 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.007248/0.4248, allocations: 1.892 MB / 259.6 MB, free: 6.387 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.4249, allocations: 11.97 kB / 259.6 MB, free: 6.375 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001003/0.4259, allocations: 239.8 kB / 259.9 MB, free: 6.129 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005875/0.4265, allocations: 185.8 kB / 260.1 MB, free: 5.945 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003745/0.4303, allocations: 1.11 MB / 261.2 MB, free: 4.789 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.4305, allocations: 115 kB / 261.3 MB, free: 4.676 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005428/0.4311, allocations: 155.9 kB / 261.4 MB, free: 4.523 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006568/0.4377, allocations: 2.141 MB / 263.6 MB, free: 2.301 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.969e-05/0.4378, allocations: 8 kB / 263.6 MB, free: 2.293 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.438, allocations: 60 kB / 263.6 MB, free: 2.234 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.4382, allocations: 67.03 kB / 263.7 MB, free: 2.168 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006036/0.4442, allocations: 1.843 MB / 265.5 MB, free: 328 kB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/0.462, allocations: 5.987 MB / 271.5 MB, free: 10.21 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/0.4664, allocations: 2.023 MB / 273.6 MB, free: 8.008 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.4666, allocations: 16.97 kB / 273.6 MB, free: 7.992 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.4667, allocations: 47.5 kB / 273.6 MB, free: 7.938 MB / 218.7 MB Notification: Performance of pre-optimization done (n=94): time 3.496e-06/0.4667, allocations: 4 kB / 273.6 MB, free: 7.934 MB / 218.7 MB Notification: Performance of matching and sorting (n=114): time 0.02834/0.495, allocations: 6.952 MB / 280.6 MB, free: 0.8594 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.4952, allocations: 72.34 kB / 280.6 MB, free: 0.7773 MB / 218.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.002174/0.4973, allocations: 0.8654 MB / 281.5 MB, free: 15.9 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003034/0.4977, allocations: 45.7 kB / 281.6 MB, free: 15.85 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006242/0.4983, allocations: 0.6541 MB / 282.2 MB, free: 15.19 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005864/0.4989, allocations: 394.2 kB / 282.6 MB, free: 14.8 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.4991, allocations: 23.94 kB / 282.6 MB, free: 14.78 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4993, allocations: 354.8 kB / 283 MB, free: 14.42 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.5012, allocations: 0.6971 MB / 283.7 MB, free: 13.73 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/0.5034, allocations: 0.7897 MB / 284.4 MB, free: 12.92 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00236/0.5058, allocations: 0.8141 MB / 285.3 MB, free: 12.11 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.5059, allocations: 0 / 285.3 MB, free: 12.11 MB / 234.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00726/0.5132, allocations: 2.238 MB / 287.5 MB, free: 9.848 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.5132, allocations: 8 kB / 287.5 MB, free: 9.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.5133, allocations: 0 / 287.5 MB, free: 9.84 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003051/0.5163, allocations: 0.6727 MB / 288.2 MB, free: 9.156 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.5181, allocations: 207.7 kB / 288.4 MB, free: 8.953 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/0.534, allocations: 8.363 MB / 296.7 MB, free: 184 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.5355, allocations: 80.33 kB / 296.8 MB, free: 104 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.5357, allocations: 35.98 kB / 296.9 MB, free: 68 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.1574/0.6931, allocations: 0.6185 MB / 297.5 MB, free: 59.66 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/0.6935, allocations: 107.1 kB / 297.6 MB, free: 59.66 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006823/0.7004, allocations: 2.335 MB / 299.9 MB, free: 59.57 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.7004, allocations: 16.78 kB / 299.9 MB, free: 59.57 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.7005, allocations: 3.656 kB / 299.9 MB, free: 59.57 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-05/0.7005, allocations: 7.578 kB / 299.9 MB, free: 59.57 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.7125, allocations: 4.37 MB / 304.3 MB, free: 59.17 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.7125, allocations: 1.375 kB / 304.3 MB, free: 59.17 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.7141, allocations: 180.9 kB / 304.5 MB, free: 59.17 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003118/0.7172, allocations: 0.6863 MB / 305.2 MB, free: 59.14 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/0.7175, allocations: 30.84 kB / 305.2 MB, free: 59.14 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/0.7316, allocations: 8.219 MB / 313.4 MB, free: 55.29 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.7317, allocations: 6.656 kB / 313.4 MB, free: 55.29 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007854/0.7396, allocations: 3.39 MB / 316.8 MB, free: 53.99 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.7406, allocations: 355.2 kB / 317.2 MB, free: 53.81 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/0.7409, allocations: 33.11 kB / 317.2 MB, free: 53.79 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.742, allocations: 79.56 kB / 317.3 MB, free: 53.78 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004009/0.7424, allocations: 98 kB / 317.4 MB, free: 53.77 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.7426, allocations: 34.02 kB / 317.4 MB, free: 53.76 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001209/0.7438, allocations: 0.66 MB / 318.1 MB, free: 53.49 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7438, allocations: 3.844 kB / 318.1 MB, free: 53.49 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001576/0.7454, allocations: 377.6 kB / 318.4 MB, free: 53.46 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.008159/0.7536, allocations: 4.103 MB / 322.5 MB, free: 51.41 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005571/0.7592, allocations: 2.378 MB / 324.9 MB, free: 50.34 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.7592, allocations: 3.172 kB / 324.9 MB, free: 50.34 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003744/0.763, allocations: 1.584 MB / 326.5 MB, free: 49.53 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.7656, allocations: 264 kB / 326.8 MB, free: 49.46 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.7766, allocations: 5.902 MB / 332.7 MB, free: 46.05 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/0.7781, allocations: 1.639 MB / 334.3 MB, free: 45.16 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/0.7794, allocations: 0.5405 MB / 334.8 MB, free: 44.72 MB / 234.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7794, allocations: 4 kB / 334.9 MB, free: 44.72 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).