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.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003731, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 44.5 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6767/0.7971, allocations: 93.19 MB / 402.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.7975, allocations: 88.27 kB / 402.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.112/0.9095, allocations: 28.09 MB / 430.3 MB, free: 4.285 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.9096, allocations: 0 / 430.3 MB, free: 4.285 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.975e-05/0.9097, allocations: 18.81 kB / 430.4 MB, free: 4.285 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003748/0.9135, allocations: 1.259 MB / 431.6 MB, free: 3.414 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.9135, allocations: 7.75 kB / 431.6 MB, free: 3.414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.9147, allocations: 190.8 kB / 431.8 MB, free: 3.332 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/0.9172, allocations: 0.8023 MB / 432.6 MB, free: 2.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.595e-05/0.9173, allocations: 73.06 kB / 432.7 MB, free: 2.875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.9176, allocations: 97.94 kB / 432.8 MB, free: 2.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.9201, allocations: 0.9284 MB / 433.7 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.51e-05/0.9202, allocations: 11.89 kB / 433.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.9203, allocations: 45.06 kB / 433.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.272e-05/0.9204, allocations: 24 kB / 433.8 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.9225, allocations: 0.6408 MB / 434.4 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008093/0.9306, allocations: 3.921 MB / 438.4 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.9318, allocations: 450.2 kB / 438.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.204e-05/0.9319, allocations: 4 kB / 438.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.932, allocations: 38.36 kB / 438.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.116e-06/0.932, allocations: 4 kB / 438.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.004693/0.9367, allocations: 1.449 MB / 440.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.9368, allocations: 85.55 kB / 440.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.9385, allocations: 0.7895 MB / 441.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.159e-05/0.9386, allocations: 31.39 kB / 441.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004514/0.9391, allocations: 0.5597 MB / 441.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.9393, allocations: 173.7 kB / 441.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.9393, allocations: 12.12 kB / 441.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.9395, allocations: 344.2 kB / 442.3 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005974/0.9401, allocations: 174 kB / 442.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007743/0.9409, allocations: 468 kB / 442.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007393/0.9416, allocations: 245.9 kB / 443.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.9416, allocations: 4 kB / 443.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002022/0.9437, allocations: 0.7181 MB / 443.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.9437, allocations: 12 kB / 443.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.9438, allocations: 8 kB / 443.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004113/0.9442, allocations: 83.33 kB / 444 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.9452, allocations: 162.3 kB / 444.1 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.9484, allocations: 2.936 MB / 447.1 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.9495, allocations: 41.14 kB / 447.1 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.793e-05/0.9496, allocations: 34.69 kB / 447.1 MB, free: 6.883 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007033/0.9504, allocations: 265.7 kB / 447.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.9506, allocations: 90.91 kB / 447.5 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.9522, allocations: 0.4996 MB / 448 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.9522, allocations: 8 kB / 448 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9522, allocations: 3.938 kB / 448 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.9522, allocations: 3.984 kB / 448 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.9559, allocations: 1.422 MB / 449.4 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.956, allocations: 4 kB / 449.4 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.9566, allocations: 83.56 kB / 449.5 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.957, allocations: 72.11 kB / 449.6 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.957, allocations: 17.02 kB / 449.6 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003158/0.9602, allocations: 2.905 MB / 452.5 MB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.9603, allocations: 4.062 kB / 452.5 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.9625, allocations: 0.797 MB / 453.3 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005404/0.9631, allocations: 204 kB / 453.5 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.9633, allocations: 12 kB / 453.5 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/0.9641, allocations: 27.98 kB / 453.5 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.9643, allocations: 39.89 kB / 453.6 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.485e-05/0.9643, allocations: 15.98 kB / 453.6 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001319/0.9657, allocations: 0.5303 MB / 454.1 MB, free: 328 kB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.9657, allocations: 4 kB / 454.1 MB, free: 324 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001698/0.9674, allocations: 239.9 kB / 454.4 MB, free: 84 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007049/0.9682, allocations: 313.3 kB / 454.7 MB, free: 15.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002096/0.9703, allocations: 0.7038 MB / 455.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.9703, allocations: 0 / 455.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.9715, allocations: 469.7 kB / 455.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.9735, allocations: 207.8 kB / 456 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.9787, allocations: 2.15 MB / 458.2 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.9796, allocations: 1.028 MB / 459.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003294/0.9799, allocations: 63.44 kB / 459.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.243e-06/0.9799, allocations: 0 / 459.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of Templates: time 0.04233/1.022, allocations: 20.89 MB / 480.2 MB, free: 6.172 MB / 362.7 MB