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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.108/1.108, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.262e-05, allocations: 4 kB / 148.2 MB, free: 6.117 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05658/0.05664, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2568/0.3135, allocations: 37.76 MB / 211.1 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.3139, allocations: 60.27 kB / 211.2 MB, free: 4.637 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03928/0.3532, allocations: 6.27 MB / 217.5 MB, free: 3.141 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3532, allocations: 0 / 217.5 MB, free: 3.141 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.3533, allocations: 7.75 kB / 217.5 MB, free: 3.141 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.001102/0.3544, allocations: 0.5779 MB / 218.1 MB, free: 2.656 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3544, allocations: 10.19 kB / 218.1 MB, free: 2.656 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.3546, allocations: 38.91 kB / 218.1 MB, free: 2.637 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.355, allocations: 280.7 kB / 218.4 MB, free: 2.395 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.355, allocations: 11.69 kB / 218.4 MB, free: 2.395 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.758e-05/0.3551, allocations: 27.31 kB / 218.4 MB, free: 2.387 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005196/0.3557, allocations: 184.6 kB / 218.6 MB, free: 2.383 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.3563, allocations: 282.1 kB / 218.9 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.3563, allocations: 3.875 kB / 218.9 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.3564, allocations: 3.953 kB / 218.9 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3564, allocations: 7.75 kB / 218.9 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.3587, allocations: 1.148 MB / 220 MB, free: 1.559 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.3591, allocations: 123.2 kB / 220.2 MB, free: 1.527 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.3592, allocations: 51.23 kB / 220.2 MB, free: 1.52 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.3593, allocations: 3.875 kB / 220.2 MB, free: 1.52 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3593, allocations: 38.44 kB / 220.2 MB, free: 1.477 MB / 170.7 MB Notification: Performance of pre-optimization done (n=15): time 3.517e-06/0.3593, allocations: 0 / 220.2 MB, free: 1.477 MB / 170.7 MB Notification: Performance of matching and sorting (n=16): time 0.001047/0.3604, allocations: 476.4 kB / 220.7 MB, free: 1.133 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.3604, allocations: 80.95 kB / 220.8 MB, free: 1.039 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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.0003592/0.3608, allocations: 212.2 kB / 221 MB, free: 0.9219 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3609, allocations: 33.58 kB / 221 MB, free: 0.8867 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.361, allocations: 276.7 kB / 221.3 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.521e-05/0.361, allocations: 58.69 kB / 221.4 MB, free: 0.6133 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.3611, allocations: 0 / 221.4 MB, free: 0.6133 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.3611, allocations: 322.5 kB / 221.7 MB, free: 300 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.3612, allocations: 42.41 kB / 221.7 MB, free: 300 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.3614, allocations: 119 kB / 221.8 MB, free: 204 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.3616, allocations: 58.25 kB / 221.9 MB, free: 192 kB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3616, allocations: 0 / 221.9 MB, free: 192 kB / 170.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004567/0.362, allocations: 209.8 kB / 222.1 MB, free: 116 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3621, allocations: 7.75 kB / 222.1 MB, free: 116 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3621, allocations: 7.859 kB / 222.1 MB, free: 112 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/0.3623, allocations: 24.66 kB / 222.1 MB, free: 96 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.3627, allocations: 61.28 kB / 222.2 MB, free: 84 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.3639, allocations: 1.223 MB / 223.4 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.3643, allocations: 19.3 kB / 223.4 MB, free: 14.85 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.3643, allocations: 10.97 kB / 223.4 MB, free: 14.85 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: dcpm.inertiaRotor.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real dcpm.la.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real dcpm.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "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 () * 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.0002002/0.3645, allocations: 119.3 kB / 223.6 MB, free: 14.73 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003684/0.3649, allocations: 153.7 kB / 223.7 MB, free: 14.66 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.365, allocations: 24.45 kB / 223.7 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.929e-05/0.3651, allocations: 20.97 kB / 223.8 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3651, allocations: 0 / 223.8 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.3651, allocations: 3.062 kB / 223.8 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3651, allocations: 7.922 kB / 223.8 MB, free: 14.63 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009227/0.366, allocations: 0.5165 MB / 224.3 MB, free: 14.27 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3661, allocations: 3.781 kB / 224.3 MB, free: 14.27 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.3664, allocations: 38.81 kB / 224.3 MB, free: 14.26 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.3666, allocations: 15.98 kB / 224.3 MB, free: 14.25 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.3666, allocations: 7.891 kB / 224.3 MB, free: 14.25 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.3678, allocations: 1.221 MB / 225.6 MB, free: 13.02 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/0.3678, allocations: 3.953 kB / 225.6 MB, free: 13.02 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.3684, allocations: 353.1 kB / 225.9 MB, free: 12.79 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3686, allocations: 111.6 kB / 226 MB, free: 12.68 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.3686, allocations: 3.5 kB / 226 MB, free: 12.68 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.369, allocations: 23.33 kB / 226 MB, free: 12.67 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.3691, allocations: 15.62 kB / 226.1 MB, free: 12.66 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.3691, allocations: 7.438 kB / 226.1 MB, free: 12.66 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002047/0.3693, allocations: 156.3 kB / 226.2 MB, free: 12.57 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3693, allocations: 0 / 226.2 MB, free: 12.57 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005133/0.3698, allocations: 53.69 kB / 226.3 MB, free: 12.57 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 () * 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.0009795/0.3708, allocations: 1.012 MB / 227.3 MB, free: 11.69 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006134/0.3715, allocations: 233.4 kB / 227.5 MB, free: 11.57 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.3715, allocations: 0 / 227.5 MB, free: 11.57 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.3718, allocations: 166.8 kB / 227.7 MB, free: 11.46 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.3723, allocations: 33.89 kB / 227.7 MB, free: 11.45 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.374, allocations: 0.598 MB / 228.3 MB, free: 11 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.3744, allocations: 0.781 MB / 229.1 MB, free: 10.26 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.3747, allocations: 97.41 kB / 229.2 MB, free: 10.24 MB / 186.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3747, allocations: 0 / 229.2 MB, free: 10.24 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.681/3.056, allocations: 5.764 MB / 235 MB, free: 7.367 MB / 186.7 MB