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: translateModel(Modelica.Electrical.Machines.Examples.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.196/1.196, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002666, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05355/0.05384, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.2723, allocations: 38.49 MB / 222.5 MB, free: 5.508 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.2726, allocations: 65.34 kB / 222.6 MB, free: 5.5 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.2977, allocations: 6.33 MB / 228.9 MB, free: 2.66 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2978, allocations: 0 / 228.9 MB, free: 2.66 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.2978, allocations: 11.94 kB / 228.9 MB, free: 2.648 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.001269/0.2991, allocations: 0.6007 MB / 229.5 MB, free: 2.02 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.2992, allocations: 15.97 kB / 229.6 MB, free: 2.004 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2993, allocations: 40.95 kB / 229.6 MB, free: 1.965 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.2997, allocations: 279.7 kB / 229.9 MB, free: 1.684 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.2997, allocations: 22.75 kB / 229.9 MB, free: 1.672 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.948e-05/0.2998, allocations: 40.09 kB / 229.9 MB, free: 1.645 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009782/0.3008, allocations: 360.3 kB / 230.3 MB, free: 1.383 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.3009, allocations: 5.688 kB / 230.3 MB, free: 1.379 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/0.301, allocations: 13.75 kB / 230.3 MB, free: 1.375 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.301, allocations: 11.95 kB / 230.3 MB, free: 1.363 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.3018, allocations: 260.4 kB / 230.6 MB, free: 1.184 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.3043, allocations: 1.214 MB / 231.8 MB, free: 132 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/0.3049, allocations: 158.3 kB / 231.9 MB, free: 8 kB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.305, allocations: 4 kB / 231.9 MB, free: 4 kB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.27e-05/0.305, allocations: 38.73 kB / 232 MB, free: 15.96 MB / 186.7 MB Notification: Performance of pre-optimization done (n=15): time 4.789e-06/0.305, allocations: 0 / 232 MB, free: 15.96 MB / 186.7 MB Notification: Performance of matching and sorting (n=16): time 0.002471/0.3075, allocations: 0.7433 MB / 232.7 MB, free: 15.23 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.3076, allocations: 81.11 kB / 232.8 MB, free: 15.14 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.0005592/0.3082, allocations: 284.2 kB / 233.1 MB, free: 14.9 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.3083, allocations: 28.89 kB / 233.1 MB, free: 14.87 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.3085, allocations: 272.5 kB / 233.4 MB, free: 14.63 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.3085, allocations: 62.3 kB / 233.4 MB, free: 14.57 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/0.3086, allocations: 3.312 kB / 233.4 MB, free: 14.57 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3087, allocations: 323.2 kB / 233.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.309, allocations: 64.03 kB / 233.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.3094, allocations: 153.3 kB / 234 MB, free: 14.05 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.3098, allocations: 95.95 kB / 234.1 MB, free: 13.99 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3098, allocations: 0 / 234.1 MB, free: 13.99 MB / 186.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009564/0.3108, allocations: 285.4 kB / 234.3 MB, free: 13.76 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3108, allocations: 8 kB / 234.3 MB, free: 13.75 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3109, allocations: 3.984 kB / 234.3 MB, free: 13.75 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/0.3111, allocations: 20.36 kB / 234.4 MB, free: 13.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.3115, allocations: 63.89 kB / 234.4 MB, free: 13.67 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3128, allocations: 1.28 MB / 235.7 MB, free: 12.3 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004011/0.3133, allocations: 30.8 kB / 235.7 MB, free: 12.28 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.3133, allocations: 11.98 kB / 235.8 MB, free: 12.27 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.00036/0.3137, allocations: 162.6 kB / 235.9 MB, free: 12.12 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.3138, allocations: 26.91 kB / 235.9 MB, free: 12.09 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.127e-05/0.3139, allocations: 28.17 kB / 236 MB, free: 12.08 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3139, allocations: 7.938 kB / 236 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3139, allocations: 0 / 236 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3139, allocations: 3.984 kB / 236 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.3154, allocations: 0.6458 MB / 236.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3155, allocations: 4 kB / 236.6 MB, free: 11.46 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.3159, allocations: 39.61 kB / 236.7 MB, free: 11.43 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/0.316, allocations: 20.03 kB / 236.7 MB, free: 11.41 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.3161, allocations: 0 / 236.7 MB, free: 11.41 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.3173, allocations: 1.281 MB / 238 MB, free: 10.04 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.3174, allocations: 4.203 kB / 238 MB, free: 10.04 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.3185, allocations: 407 kB / 238.4 MB, free: 9.68 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.3188, allocations: 108.2 kB / 238.5 MB, free: 9.562 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.924e-05/0.3189, allocations: 15.62 kB / 238.5 MB, free: 9.551 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.3192, allocations: 23.61 kB / 238.5 MB, free: 9.531 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.842e-05/0.3193, allocations: 11.98 kB / 238.5 MB, free: 9.52 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.3193, allocations: 7.625 kB / 238.5 MB, free: 9.516 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000299/0.3196, allocations: 190.8 kB / 238.7 MB, free: 9.359 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.164e-06/0.3196, allocations: 0 / 238.7 MB, free: 9.359 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005269/0.3202, allocations: 67.12 kB / 238.8 MB, free: 9.301 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.0001732/0.3204, allocations: 106.9 kB / 238.9 MB, free: 9.191 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0009988/0.3214, allocations: 298.9 kB / 239.2 MB, free: 8.926 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3214, allocations: 0 / 239.2 MB, free: 8.926 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.3219, allocations: 208.8 kB / 239.4 MB, free: 8.73 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.3225, allocations: 35.05 kB / 239.4 MB, free: 8.707 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.3244, allocations: 0.9368 MB / 240.4 MB, free: 7.766 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.3249, allocations: 0.7833 MB / 241.1 MB, free: 6.957 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.325, allocations: 23.44 kB / 241.2 MB, free: 6.934 MB / 186.7 MB Notification: Performance of SimCode: time 2.876e-06/0.325, allocations: 0 / 241.2 MB, free: 6.934 MB / 186.7 MB Notification: Performance of Templates: time 0.01067/0.3357, allocations: 4.473 MB / 245.6 MB, free: 2.516 MB / 186.7 MB