Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.989/1.989, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003483, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09623/0.0966, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5361, allocations: 92.76 MB / 401.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.5365, allocations: 89.8 kB / 401.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09946/0.636, allocations: 26.17 MB / 428 MB, free: 5.027 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.636, allocations: 4 kB / 428 MB, free: 5.023 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.749e-05/0.6361, allocations: 19.56 kB / 428 MB, free: 5.023 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.002784/0.6389, allocations: 1.238 MB / 429.3 MB, free: 4.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.639, allocations: 11.62 kB / 429.3 MB, free: 4.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007626/0.6398, allocations: 167.6 kB / 429.4 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.6418, allocations: 0.7829 MB / 430.2 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.898e-05/0.6419, allocations: 72.97 kB / 430.3 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.6421, allocations: 96.81 kB / 430.4 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.6444, allocations: 0.9209 MB / 431.3 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-05/0.6445, allocations: 3.188 kB / 431.3 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.6447, allocations: 44.5 kB / 431.3 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.6447, allocations: 23.41 kB / 431.4 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.6466, allocations: 0.6372 MB / 432 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006745/0.6534, allocations: 3.955 MB / 436 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007535/0.6542, allocations: 347.5 kB / 436.3 MB, free: 300 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/0.6543, allocations: 8.266 kB / 436.3 MB, free: 292 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.6543, allocations: 41.72 kB / 436.4 MB, free: 244 kB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.426e-06/0.6543, allocations: 0 / 436.4 MB, free: 244 kB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.003626/0.658, allocations: 1.243 MB / 437.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.6581, allocations: 81.11 kB / 437.7 MB, free: 15.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.6597, allocations: 0.7848 MB / 438.5 MB, free: 14.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.6598, allocations: 36.14 kB / 438.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004711/0.6603, allocations: 0.5709 MB / 439.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.6604, allocations: 139 kB / 439.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.6605, allocations: 13.44 kB / 439.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.6607, allocations: 338.8 kB / 439.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.6612, allocations: 150.4 kB / 439.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007828/0.662, allocations: 484.2 kB / 440.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006816/0.6627, allocations: 226 kB / 440.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.6628, allocations: 4 kB / 440.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001758/0.6645, allocations: 0.6498 MB / 441 MB, free: 12.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.6646, allocations: 12 kB / 441 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.6646, allocations: 8 kB / 441.1 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.6648, allocations: 37.03 kB / 441.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009515/0.6658, allocations: 167.6 kB / 441.3 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.6671, allocations: 1.289 MB / 442.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009238/0.668, allocations: 43.39 kB / 442.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.6681, allocations: 35.75 kB / 442.6 MB, free: 10.56 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.0006224/0.6687, allocations: 260.6 kB / 442.9 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.6689, allocations: 82.97 kB / 443 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.6701, allocations: 396.4 kB / 443.3 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.6701, allocations: 8 kB / 443.4 MB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6701, allocations: 0 / 443.4 MB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.6701, allocations: 0 / 443.4 MB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002904/0.673, allocations: 1.268 MB / 444.6 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.6731, allocations: 4.219 kB / 444.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006544/0.6738, allocations: 83.7 kB / 444.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001714/0.674, allocations: 20.8 kB / 444.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.674, allocations: 11.67 kB / 444.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.6753, allocations: 1.274 MB / 446 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.6754, allocations: 4.031 kB / 446 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.6773, allocations: 0.6539 MB / 446.7 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/0.6779, allocations: 186.5 kB / 446.9 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.6781, allocations: 18.92 kB / 446.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006615/0.6788, allocations: 26.98 kB / 446.9 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.6789, allocations: 30.84 kB / 446.9 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.679, allocations: 11.95 kB / 446.9 MB, free: 6.688 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001223/0.6802, allocations: 0.5309 MB / 447.5 MB, free: 6.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6802, allocations: 4 kB / 447.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001432/0.6817, allocations: 226.7 kB / 447.7 MB, free: 6.102 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.0006927/0.6824, allocations: 296.4 kB / 448 MB, free: 5.836 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.6841, allocations: 0.5208 MB / 448.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.004e-06/0.6842, allocations: 0 / 448.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007223/0.6849, allocations: 276.5 kB / 448.8 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.6868, allocations: 200.2 kB / 449 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005659/0.6925, allocations: 2.137 MB / 451.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008361/0.6934, allocations: 1.012 MB / 452.1 MB, free: 1.879 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004097/0.6938, allocations: 59.44 kB / 452.2 MB, free: 1.824 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6938, allocations: 0 / 452.2 MB, free: 1.824 MB / 330.7 MB Notification: Performance of Templates: time 0.03913/0.733, allocations: 16.05 MB / 468.2 MB, free: 2 MB / 346.7 MB