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.156/1.156, allocations: 111.2 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002751, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05642/0.05674, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2197/0.2765, allocations: 38.5 MB / 222.1 MB, free: 5.492 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.2768, allocations: 69.53 kB / 222.2 MB, free: 5.484 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02565/0.3025, allocations: 6.316 MB / 228.5 MB, free: 2.492 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3025, allocations: 0 / 228.5 MB, free: 2.492 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.534e-05/0.3026, allocations: 12 kB / 228.5 MB, free: 2.48 MB / 170.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.001167/0.3038, allocations: 0.6095 MB / 229.1 MB, free: 1.844 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3038, allocations: 8.031 kB / 229.1 MB, free: 1.836 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.3039, allocations: 72.59 kB / 229.2 MB, free: 1.777 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.746e-05/0.304, allocations: 39.53 kB / 229.2 MB, free: 1.738 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.3045, allocations: 277.5 kB / 229.5 MB, free: 1.461 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.3045, allocations: 24.19 kB / 229.5 MB, free: 1.449 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.507e-05/0.3046, allocations: 39.16 kB / 229.6 MB, free: 1.422 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009552/0.3056, allocations: 371 kB / 229.9 MB, free: 1.152 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.3056, allocations: 0 / 229.9 MB, free: 1.152 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-05/0.3057, allocations: 17.14 kB / 229.9 MB, free: 1.145 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3057, allocations: 8 kB / 229.9 MB, free: 1.137 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008443/0.3066, allocations: 257.2 kB / 230.2 MB, free: 0.957 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002561/0.3092, allocations: 1.222 MB / 231.4 MB, free: 15.9 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000636/0.3099, allocations: 159 kB / 231.6 MB, free: 15.77 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.3099, allocations: 0 / 231.6 MB, free: 15.77 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.31, allocations: 41.89 kB / 231.6 MB, free: 15.73 MB / 186.7 MB Notification: Performance of pre-optimization done (n=15): time 2.244e-06/0.31, allocations: 0 / 231.6 MB, free: 15.73 MB / 186.7 MB Notification: Performance of matching and sorting (n=16): time 0.002474/0.3125, allocations: 0.747 MB / 232.4 MB, free: 15 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.3126, allocations: 77.11 kB / 232.4 MB, free: 14.91 MB / 186.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.0005687/0.3131, allocations: 256.6 kB / 232.7 MB, free: 14.69 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.3132, allocations: 28.7 kB / 232.7 MB, free: 14.66 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.3134, allocations: 265.1 kB / 233 MB, free: 14.43 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.988e-05/0.3135, allocations: 62.34 kB / 233 MB, free: 14.37 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.426e-05/0.3135, allocations: 3.562 kB / 233 MB, free: 14.37 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3137, allocations: 323.9 kB / 233.4 MB, free: 14.05 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.314, allocations: 70.2 kB / 233.4 MB, free: 14 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/0.3144, allocations: 147.1 kB / 233.6 MB, free: 13.85 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.3148, allocations: 97 kB / 233.7 MB, free: 13.78 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3148, allocations: 0 / 233.7 MB, free: 13.78 MB / 186.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009387/0.3158, allocations: 281.9 kB / 233.9 MB, free: 13.56 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.3158, allocations: 5.875 kB / 233.9 MB, free: 13.55 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3158, allocations: 12.22 kB / 234 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.3161, allocations: 24.47 kB / 234 MB, free: 13.52 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004247/0.3165, allocations: 55.91 kB / 234 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.318, allocations: 1.291 MB / 235.3 MB, free: 12.09 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.3184, allocations: 27.36 kB / 235.4 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.3185, allocations: 8 kB / 235.4 MB, free: 12.06 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: dcpm.inertiaRotor.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: 10 * 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 (28): * Single equations (assignments): 27 * 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.0003823/0.3189, allocations: 176.1 kB / 235.5 MB, free: 11.9 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.635e-05/0.319, allocations: 23.72 kB / 235.6 MB, free: 11.88 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.3191, allocations: 24.19 kB / 235.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3191, allocations: 7.984 kB / 235.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.3191, allocations: 0 / 235.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3191, allocations: 0 / 235.6 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.3207, allocations: 0.6426 MB / 236.2 MB, free: 11.26 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3207, allocations: 0 / 236.2 MB, free: 11.26 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.3211, allocations: 43.91 kB / 236.3 MB, free: 11.22 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.3213, allocations: 24.3 kB / 236.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.3214, allocations: 0 / 236.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.3227, allocations: 1.281 MB / 237.6 MB, free: 9.828 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.3227, allocations: 3.953 kB / 237.6 MB, free: 9.824 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3239, allocations: 427.8 kB / 238 MB, free: 9.434 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.3241, allocations: 115.4 kB / 238.1 MB, free: 9.312 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.3242, allocations: 0 / 238.1 MB, free: 9.312 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.3245, allocations: 31.92 kB / 238.1 MB, free: 9.285 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.199e-05/0.3246, allocations: 15.8 kB / 238.2 MB, free: 9.273 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.3246, allocations: 4 kB / 238.2 MB, free: 9.27 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000297/0.3249, allocations: 191.9 kB / 238.3 MB, free: 9.113 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3249, allocations: 0 / 238.3 MB, free: 9.113 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005547/0.3255, allocations: 62.75 kB / 238.4 MB, free: 9.059 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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.001588/0.3271, allocations: 1.103 MB / 239.5 MB, free: 7.98 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3282, allocations: 308 kB / 239.8 MB, free: 7.711 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3282, allocations: 8.062 kB / 239.8 MB, free: 7.703 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.3287, allocations: 196 kB / 240 MB, free: 7.516 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.3293, allocations: 37.92 kB / 240.1 MB, free: 7.492 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.3325, allocations: 2.599 MB / 242.7 MB, free: 4.852 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004732/0.3331, allocations: 0.7794 MB / 243.4 MB, free: 4.047 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.3333, allocations: 102.2 kB / 243.5 MB, free: 4.012 MB / 186.7 MB Notification: Performance of SimCode: time 1.773e-06/0.3333, allocations: 0 / 243.5 MB, free: 4.012 MB / 186.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: dcpm.Jr.