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.DCPM_Start.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.DCPM_Start,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.347/1.347, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002795, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06392/0.06424, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCPM_Start): time 0.007027/0.07132, allocations: 2.545 MB / 186.1 MB, free: 3.371 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.07387, allocations: 0.6243 MB / 186.7 MB, free: 2.746 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000414/0.07434, allocations: 4 kB / 186.7 MB, free: 2.742 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.07456, allocations: 43.67 kB / 186.7 MB, free: 2.699 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008844/0.07546, allocations: 139.6 kB / 186.9 MB, free: 2.562 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.0777, allocations: 55.94 kB / 186.9 MB, free: 2.508 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.07876, allocations: 287.4 kB / 187.2 MB, free: 2.227 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.07934, allocations: 140.1 kB / 187.3 MB, free: 2.086 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004787/0.07985, allocations: 135.5 kB / 187.5 MB, free: 1.953 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.08021, allocations: 147.3 kB / 187.6 MB, free: 1.809 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 7.676e-05/0.08031, allocations: 20 kB / 187.6 MB, free: 1.789 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.08043, allocations: 20 kB / 187.7 MB, free: 1.77 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 9.476e-05/0.08054, allocations: 63.77 kB / 187.7 MB, free: 1.707 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.0807, allocations: 93.52 kB / 187.8 MB, free: 1.609 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007206/0.08143, allocations: 390.8 kB / 188.2 MB, free: 1.227 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.08145, allocations: 3.938 kB / 188.2 MB, free: 1.223 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.08147, allocations: 0 / 188.2 MB, free: 1.223 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.08149, allocations: 0 / 188.2 MB, free: 1.223 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001713/0.08322, allocations: 0.6044 MB / 188.8 MB, free: 0.5703 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.0833, allocations: 12.03 kB / 188.8 MB, free: 0.5586 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001466/0.08346, allocations: 66.53 kB / 188.9 MB, free: 496 kB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.0836, allocations: 39.53 kB / 188.9 MB, free: 456 kB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00071/0.08433, allocations: 300.3 kB / 189.2 MB, free: 112 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.637e-05/0.0844, allocations: 29 kB / 189.2 MB, free: 80 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.08452, allocations: 36 kB / 189.3 MB, free: 44 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.08584, allocations: 375.9 kB / 189.6 MB, free: 15.65 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.08591, allocations: 8 kB / 189.6 MB, free: 15.64 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.28e-05/0.08598, allocations: 16 kB / 189.7 MB, free: 15.63 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.08601, allocations: 11.94 kB / 189.7 MB, free: 15.62 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.08722, allocations: 247.9 kB / 189.9 MB, free: 15.38 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01683/0.1041, allocations: 1.236 MB / 191.1 MB, free: 14.06 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.1051, allocations: 154.5 kB / 191.3 MB, free: 13.9 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.1052, allocations: 4 kB / 191.3 MB, free: 13.89 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.971e-05/0.1053, allocations: 34.56 kB / 191.3 MB, free: 13.85 MB / 170.7 MB Notification: Performance of pre-optimization done (n=15): time 4.168e-06/0.1053, allocations: 0 / 191.3 MB, free: 13.85 MB / 170.7 MB Notification: Performance of matching and sorting (n=16): time 0.01038/0.1157, allocations: 0.742 MB / 192.1 MB, free: 13.04 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/0.1159, allocations: 77.11 kB / 192.2 MB, free: 12.94 MB / 170.7 MB [/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:7500:7-7502:73:writable] Warning: Parameter dcpm.La has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0015) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7497:7-7499:73:writable] Warning: Parameter dcpm.Ra has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7494:7-7496:56:writable] Warning: Parameter dcpm.wNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=149.2256510455151) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7491:7-7493:56:writable] Warning: Parameter dcpm.IaNominal 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:7488:7-7490:56:writable] Warning: Parameter dcpm.VaNominal 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:7272:7-7274:46:writable] Warning: Parameter dcpm.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=dcpm.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 dcpm.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.15) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009065/0.1168, allocations: 274.5 kB / 192.4 MB, free: 12.66 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.1169, allocations: 33.7 kB / 192.5 MB, free: 12.62 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.1172, allocations: 262.3 kB / 192.7 MB, free: 12.36 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.1174, allocations: 67.08 kB / 192.8 MB, free: 12.3 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.1174, allocations: 4 kB / 192.8 MB, free: 12.29 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.1176, allocations: 326.8 kB / 193.1 MB, free: 11.96 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005412/0.1182, allocations: 60.2 kB / 193.2 MB, free: 11.91 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006464/0.1189, allocations: 146.7 kB / 193.3 MB, free: 11.73 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/0.1195, allocations: 89.83 kB / 193.4 MB, free: 11.64 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.1195, allocations: 7.938 kB / 193.4 MB, free: 11.63 MB / 170.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.007521/0.1271, allocations: 270 kB / 193.7 MB, free: 11.36 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.1272, allocations: 6.5 kB / 193.7 MB, free: 11.36 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.1272, allocations: 4 kB / 193.7 MB, free: 11.35 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002928/0.1275, allocations: 24.84 kB / 193.7 MB, free: 11.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/0.1307, allocations: 56.19 kB / 193.7 MB, free: 11.27 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.133, allocations: 1.28 MB / 195 MB, free: 9.855 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006065/0.1337, allocations: 24.23 kB / 195.1 MB, free: 9.832 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.1338, allocations: 23.92 kB / 195.1 MB, free: 9.809 MB / 170.7 MB Warning: Assuming fixed start value for the following 3 variables: loadInertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real dcpm.la.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real dcpm.inertiaRotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000516/0.1343, allocations: 162.1 kB / 195.2 MB, free: 9.641 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.1345, allocations: 27.72 kB / 195.3 MB, free: 9.613 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1346, allocations: 26.17 kB / 195.3 MB, free: 9.59 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1346, allocations: 0 / 195.3 MB, free: 9.59 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.1347, allocations: 4 kB / 195.3 MB, free: 9.586 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.1347, allocations: 0 / 195.3 MB, free: 9.586 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00851/0.1432, allocations: 0.6413 MB / 195.9 MB, free: 8.879 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.1433, allocations: 0 / 195.9 MB, free: 8.879 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006368/0.1439, allocations: 43.97 kB / 196 MB, free: 8.836 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002338/0.1442, allocations: 24.91 kB / 196 MB, free: 8.809 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.1443, allocations: 7.953 kB / 196 MB, free: 8.801 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.1464, allocations: 1.273 MB / 197.3 MB, free: 7.398 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.338e-05/0.1465, allocations: 4.031 kB / 197.3 MB, free: 7.395 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.1484, allocations: 401.7 kB / 197.7 MB, free: 6.977 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002835/0.1488, allocations: 112.8 kB / 197.8 MB, free: 6.848 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.1489, allocations: 12 kB / 197.8 MB, free: 6.836 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005191/0.1495, allocations: 19.98 kB / 197.8 MB, free: 6.816 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.1496, allocations: 7.984 kB / 197.8 MB, free: 6.809 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.1497, allocations: 4 kB / 197.8 MB, free: 6.805 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004789/0.1501, allocations: 190 kB / 198 MB, free: 6.617 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.697e-06/0.1502, allocations: 0 / 198 MB, free: 6.617 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0009972/0.1512, allocations: 63.94 kB / 198.1 MB, free: 6.555 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002507/0.1537, allocations: 0.9371 MB / 199 MB, free: 5.582 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.1554, allocations: 303 kB / 199.3 MB, free: 5.273 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.1554, allocations: 0 / 199.3 MB, free: 5.273 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008602/0.1563, allocations: 202.5 kB / 199.5 MB, free: 5.062 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008272/0.1571, allocations: 36.91 kB / 199.5 MB, free: 5.027 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004146/0.1613, allocations: 1.244 MB / 200.8 MB, free: 3.688 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006691/0.1621, allocations: 0.7872 MB / 201.6 MB, free: 2.875 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.1624, allocations: 95.41 kB / 201.7 MB, free: 2.781 MB / 170.7 MB Notification: Performance of SimCode: time 1.724e-06/0.1625, allocations: 0 / 201.7 MB, free: 2.781 MB / 170.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: dcpm.Jr.