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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.08/1.08, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.0002528, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0543/0.05458, allocations: 25.17 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2458/0.3004, allocations: 49.78 MB / 233.4 MB, free: 12.28 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.3008, allocations: 64.47 kB / 233.4 MB, free: 12.25 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2321/0.5329, allocations: 56.02 MB / 289.5 MB, free: 8.305 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.533, allocations: 0 / 289.5 MB, free: 8.305 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002212/0.5332, allocations: 47.94 kB / 289.5 MB, free: 8.258 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.008827/0.542, allocations: 2.245 MB / 291.7 MB, free: 5.957 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.5421, allocations: 8.031 kB / 291.8 MB, free: 5.949 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00123/0.5433, allocations: 294.7 kB / 292 MB, free: 5.652 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000781/0.5441, allocations: 237.2 kB / 292.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004145/0.5483, allocations: 1.282 MB / 293.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.5485, allocations: 139.8 kB / 293.7 MB, free: 3.953 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005599/0.5491, allocations: 188 kB / 293.9 MB, free: 3.77 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007712/0.5569, allocations: 2.59 MB / 296.5 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.818e-05/0.557, allocations: 3.906 kB / 296.5 MB, free: 1.105 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003199/0.5573, allocations: 87.98 kB / 296.6 MB, free: 1.02 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.5575, allocations: 87.91 kB / 296.6 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1659/0.7234, allocations: 2.149 MB / 298.8 MB, free: 44.67 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02194/0.7454, allocations: 7.521 MB / 306.3 MB, free: 43.5 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003832/0.7493, allocations: 2.002 MB / 308.3 MB, free: 42.61 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.7495, allocations: 16.08 kB / 308.3 MB, free: 42.61 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.7496, allocations: 50.72 kB / 308.4 MB, free: 42.57 MB / 234.7 MB Notification: Performance of pre-optimization done (n=105): time 4.298e-06/0.7496, allocations: 0.9688 kB / 308.4 MB, free: 42.57 MB / 234.7 MB Notification: Performance of matching and sorting (n=128): time 0.03444/0.784, allocations: 8.019 MB / 316.4 MB, free: 41.61 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.7841, allocations: 65.47 kB / 316.5 MB, free: 41.55 MB / 234.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/Electrical/Machines.mo:2348:9-2350:50:writable] Warning: Parameter smee.sigmae has no value, and is fixed during initialization (fixed=true), using available start value (start=0.025) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2345:9-2347:50:writable] Warning: Parameter smee.Re has no value, and is fixed during initialization (fixed=true), using available start value (start=2.5) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2342:9-2344:50:writable] Warning: Parameter smee.IeOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=10.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2339:9-2341:50:writable] Warning: Parameter smee.VsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2333:9-2335:75:writable] Warning: Parameter smee.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:2327:9-2329:75:writable] Warning: Parameter smee.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2324:9-2326:51:writable] Warning: Parameter smee.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:2321:9-2323:75:writable] Warning: Parameter smee.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=1.5 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2318:9-2320:75:writable] Warning: Parameter smee.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=1.5 / (6.283185307179586 * smee.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 smee.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smee.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 smee.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 smee.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 smee.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 smee.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smee.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 smee.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.002175/0.7863, allocations: 1.006 MB / 317.5 MB, free: 41.4 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003725/0.7867, allocations: 47.77 kB / 317.5 MB, free: 41.37 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005626/0.7873, allocations: 0.821 MB / 318.3 MB, free: 41 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005665/0.7879, allocations: 442 kB / 318.8 MB, free: 40.75 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.788, allocations: 23.78 kB / 318.8 MB, free: 40.75 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.7882, allocations: 360 kB / 319.1 MB, free: 40.44 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/0.7903, allocations: 0.7899 MB / 319.9 MB, free: 40.44 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002392/0.7927, allocations: 1.016 MB / 320.9 MB, free: 40.21 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/0.7953, allocations: 0.936 MB / 321.9 MB, free: 40.2 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.7954, allocations: 3.625 kB / 321.9 MB, free: 40.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.007491/0.8029, allocations: 2.529 MB / 324.4 MB, free: 39.79 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.8029, allocations: 13.16 kB / 324.4 MB, free: 39.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.375e-05/0.803, allocations: 9.094 kB / 324.4 MB, free: 39.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/0.8057, allocations: 0.6277 MB / 325.1 MB, free: 39.63 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.808, allocations: 286.8 kB / 325.3 MB, free: 39.62 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/0.8219, allocations: 7.64 MB / 333 MB, free: 34.98 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.8239, allocations: 116.4 kB / 333.1 MB, free: 34.96 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002696/0.8242, allocations: 48.94 kB / 333.1 MB, free: 34.95 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: smee.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smee.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smee.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smee.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (126): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,86.1%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002028/0.8263, allocations: 0.6842 MB / 333.8 MB, free: 34.59 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004964/0.8268, allocations: 135.6 kB / 334 MB, free: 34.52 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00702/0.8338, allocations: 2.484 MB / 336.4 MB, free: 33.59 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.548e-05/0.8339, allocations: 14.62 kB / 336.5 MB, free: 33.59 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.8339, allocations: 3.094 kB / 336.5 MB, free: 33.59 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-05/0.834, allocations: 16.27 kB / 336.5 MB, free: 33.59 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01391/0.8479, allocations: 4.896 MB / 341.4 MB, free: 31.68 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/0.848, allocations: 0 / 341.4 MB, free: 31.68 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002917/0.8509, allocations: 214.2 kB / 341.6 MB, free: 31.67 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004683/0.8557, allocations: 0.6408 MB / 342.2 MB, free: 31.5 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003312/0.8561, allocations: 30.69 kB / 342.3 MB, free: 31.48 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/0.8693, allocations: 7.468 MB / 349.7 MB, free: 26.88 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8694, allocations: 0 / 349.7 MB, free: 26.88 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009054/0.8785, allocations: 3.69 MB / 353.4 MB, free: 25.34 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009816/0.8795, allocations: 376.5 kB / 353.8 MB, free: 25.1 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/0.8798, allocations: 31.53 kB / 353.8 MB, free: 25.08 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/0.8812, allocations: 107.3 kB / 353.9 MB, free: 25.06 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/0.8816, allocations: 106.3 kB / 354 MB, free: 25.05 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.8817, allocations: 33.81 kB / 354.1 MB, free: 25.04 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001408/0.8831, allocations: 0.7674 MB / 354.8 MB, free: 24.39 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8832, allocations: 4 kB / 354.8 MB, free: 24.39 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00176/0.8849, allocations: 439 kB / 355.3 MB, free: 23.96 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2]) * 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 (95): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,86.1%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01156/0.8965, allocations: 4.681 MB / 359.9 MB, free: 19.73 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.008712/0.9053, allocations: 2.472 MB / 362.4 MB, free: 17.55 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/0.9053, allocations: 0 / 362.4 MB, free: 17.55 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005723/0.9111, allocations: 1.561 MB / 364 MB, free: 16.17 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.9142, allocations: 256.1 kB / 364.2 MB, free: 15.98 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/0.9314, allocations: 9.89 MB / 374.1 MB, free: 6.578 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002391/0.9338, allocations: 1.787 MB / 375.9 MB, free: 5.109 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002087/0.936, allocations: 0.7093 MB / 376.6 MB, free: 4.457 MB / 234.7 MB Notification: Performance of SimCode: time 1.513e-06/0.936, allocations: 4 kB / 376.6 MB, free: 4.453 MB / 234.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: smee.Jr. [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 1.5 / (6.283185307179586 * smee.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.05 / (6.283185307179586 * smee.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.1 / (6.283185307179586 * smee.fsNominal).