Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadModel(Modelica): time 1.754/1.754, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000656/0.0006562, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1241, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.486, allocations: 92.77 MB / 401.2 MB, free: 18.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.4863, allocations: 86.16 kB / 401.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08566/0.572, allocations: 26.17 MB / 427.5 MB, free: 7.613 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.79e-06/0.572, allocations: 0.6562 kB / 427.5 MB, free: 7.613 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.376e-05/0.5721, allocations: 27.41 kB / 427.5 MB, free: 7.609 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002041/0.5741, allocations: 1.242 MB / 428.7 MB, free: 6.746 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.5742, allocations: 11.56 kB / 428.8 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006245/0.5748, allocations: 167.5 kB / 428.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.5763, allocations: 0.7817 MB / 429.7 MB, free: 6.199 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.584e-05/0.5763, allocations: 72.91 kB / 429.8 MB, free: 6.199 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.5765, allocations: 92.69 kB / 429.9 MB, free: 6.199 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.5783, allocations: 0.9168 MB / 430.8 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.5784, allocations: 0 / 430.8 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.5785, allocations: 41.09 kB / 430.8 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.5785, allocations: 31.25 kB / 430.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.58, allocations: 0.6318 MB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.5851, allocations: 3.945 MB / 435.4 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.5857, allocations: 363.7 kB / 435.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.5858, allocations: 4.281 kB / 435.8 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.5858, allocations: 38.41 kB / 435.8 MB, free: 3.086 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.732e-06/0.5858, allocations: 0 / 435.8 MB, free: 3.086 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002445/0.5883, allocations: 1.24 MB / 437.1 MB, free: 1.977 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.5883, allocations: 85.11 kB / 437.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.5894, allocations: 0.689 MB / 437.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.5894, allocations: 35.45 kB / 437.9 MB, free: 1.316 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/0.5897, allocations: 0.5791 MB / 438.4 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.438e-05/0.5898, allocations: 131.7 kB / 438.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.5898, allocations: 14.75 kB / 438.6 MB, free: 0.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.009e-05/0.5899, allocations: 337.2 kB / 438.9 MB, free: 432 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.5903, allocations: 155.2 kB / 439.1 MB, free: 324 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005848/0.5909, allocations: 466.4 kB / 439.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/0.5915, allocations: 234.2 kB / 439.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.966e-06/0.5915, allocations: 4 kB / 439.8 MB, free: 15.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001486/0.593, allocations: 0.6464 MB / 440.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.593, allocations: 12.56 kB / 440.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.5931, allocations: 8 kB / 440.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.5933, allocations: 40.72 kB / 440.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.5945, allocations: 159.6 kB / 440.6 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.5966, allocations: 1.292 MB / 441.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.5981, allocations: 43.52 kB / 442 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.5983, allocations: 35.55 kB / 442 MB, free: 13.47 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (85): * Single equations (assignments): 84 * 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.0009642/0.5993, allocations: 262 kB / 442.2 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.5995, allocations: 86.95 kB / 442.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.6005, allocations: 397.3 kB / 442.7 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.6005, allocations: 7.984 kB / 442.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.741e-06/0.6005, allocations: 0 / 442.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.298e-06/0.6005, allocations: 3.984 kB / 442.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.603, allocations: 1.261 MB / 444 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6031, allocations: 11.88 kB / 444 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004493/0.6035, allocations: 75.78 kB / 444.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.6037, allocations: 28.34 kB / 444.1 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.6037, allocations: 7.875 kB / 444.1 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.605, allocations: 1.27 MB / 445.4 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/0.605, allocations: 16.2 kB / 445.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.6064, allocations: 0.7436 MB / 446.1 MB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.6068, allocations: 184.5 kB / 446.3 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.6069, allocations: 10.94 kB / 446.3 MB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.6074, allocations: 31.47 kB / 446.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.567e-05/0.6075, allocations: 27.48 kB / 446.4 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.6076, allocations: 11.62 kB / 446.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009557/0.6085, allocations: 0.5271 MB / 446.9 MB, free: 9.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.6086, allocations: 4 kB / 446.9 MB, free: 9.078 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002005/0.6106, allocations: 228.7 kB / 447.2 MB, free: 8.875 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * 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 (35): * Single equations (assignments): 34 * 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.001013/0.6116, allocations: 292.1 kB / 447.4 MB, free: 8.594 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002594/0.6142, allocations: 0.5192 MB / 448 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.6143, allocations: 0 / 448 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.6155, allocations: 278.9 kB / 448.2 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.6179, allocations: 189.7 kB / 448.4 MB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007966/0.6259, allocations: 2.131 MB / 450.6 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/0.6276, allocations: 1.016 MB / 451.6 MB, free: 4.652 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.6281, allocations: 61.25 kB / 451.6 MB, free: 4.598 MB / 330.7 MB Notification: Performance of SimCode: time 2.891e-06/0.6281, allocations: 3.938 kB / 451.6 MB, free: 4.594 MB / 330.7 MB Notification: Performance of Templates: time 0.05601/0.6842, allocations: 16.06 MB / 467.7 MB, free: 4.77 MB / 346.7 MB