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.DCSE_SinglePhase.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.DCSE_SinglePhase,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_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004158/0.0004159, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.0813, allocations: 44.5 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.4446, allocations: 93.98 MB / 402.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.4449, allocations: 84.58 kB / 402.5 MB, free: 18.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1026/0.5475, allocations: 28.55 MB / 431.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.53e-06/0.5476, allocations: 0 / 431.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.308e-05/0.5477, allocations: 31.3 kB / 431.1 MB, free: 6.121 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00244/0.5501, allocations: 1.282 MB / 432.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.5502, allocations: 11.62 kB / 432.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008576/0.5511, allocations: 191.3 kB / 432.6 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.5529, allocations: 0.8112 MB / 433.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.01e-05/0.553, allocations: 73.5 kB / 433.5 MB, free: 4.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.5532, allocations: 100.3 kB / 433.6 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/0.5552, allocations: 0.936 MB / 434.5 MB, free: 3.875 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.831e-05/0.5553, allocations: 7.984 kB / 434.5 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.5554, allocations: 44.23 kB / 434.6 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.5554, allocations: 24 kB / 434.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.5572, allocations: 0.662 MB / 435.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006052/0.5633, allocations: 3.965 MB / 439.2 MB, free: 72 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009715/0.5643, allocations: 463.9 kB / 439.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.5644, allocations: 4 kB / 439.7 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.5644, allocations: 38.5 kB / 439.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.881e-06/0.5645, allocations: 0 / 439.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.004159/0.5686, allocations: 1.504 MB / 441.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.5687, allocations: 85.55 kB / 441.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.5702, allocations: 0.7089 MB / 442 MB, free: 13.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/0.5703, allocations: 36.69 kB / 442 MB, free: 13.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004801/0.5708, allocations: 0.5776 MB / 442.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.571, allocations: 171.2 kB / 442.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.5711, allocations: 14.44 kB / 442.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5713, allocations: 345.2 kB / 443.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.5718, allocations: 181.9 kB / 443.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000751/0.5726, allocations: 473 kB / 443.8 MB, free: 12.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006451/0.5732, allocations: 257.4 kB / 444 MB, free: 12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.5733, allocations: 4 kB / 444 MB, free: 11.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001871/0.5751, allocations: 0.7472 MB / 444.8 MB, free: 11.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.5752, allocations: 11.94 kB / 444.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.5752, allocations: 8.281 kB / 444.8 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003653/0.5756, allocations: 83.81 kB / 444.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007428/0.5764, allocations: 162.8 kB / 445 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.5798, allocations: 2.938 MB / 448 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009362/0.5808, allocations: 42.61 kB / 448 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.289e-05/0.5809, allocations: 39.19 kB / 448 MB, free: 8.133 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 (87): * Single equations (assignments): 85 * 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.0006539/0.5816, allocations: 263.6 kB / 448.3 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.5818, allocations: 94.81 kB / 448.4 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.5832, allocations: 0.5229 MB / 448.9 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.5833, allocations: 4 kB / 448.9 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.481e-06/0.5833, allocations: 0 / 448.9 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.5833, allocations: 15.92 kB / 448.9 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003343/0.5867, allocations: 1.458 MB / 450.4 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.5867, allocations: 4.031 kB / 450.4 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.5872, allocations: 82.83 kB / 450.5 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/0.5876, allocations: 74.91 kB / 450.6 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.5876, allocations: 18.27 kB / 450.6 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.591, allocations: 2.91 MB / 453.5 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.14e-06/0.5911, allocations: 0 / 453.5 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.5932, allocations: 0.9265 MB / 454.4 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005255/0.5937, allocations: 204.5 kB / 454.6 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.5939, allocations: 10.56 kB / 454.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.5945, allocations: 34.78 kB / 454.7 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.5946, allocations: 36.39 kB / 454.7 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.5947, allocations: 15.75 kB / 454.7 MB, free: 2.109 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001136/0.5958, allocations: 0.5497 MB / 455.3 MB, free: 1.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.85e-07/0.5959, allocations: 0 / 455.3 MB, free: 1.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001418/0.5973, allocations: 240 kB / 455.5 MB, free: 1.332 MB / 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 (41): * Single equations (assignments): 39 * 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.0005974/0.5979, allocations: 303.7 kB / 455.8 MB, free: 1.023 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.5997, allocations: 0.7231 MB / 456.5 MB, free: 284 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.943e-06/0.5997, allocations: 0 / 456.5 MB, free: 284 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.6008, allocations: 481.7 kB / 457 MB, free: 15.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.6022, allocations: 211.3 kB / 457.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004643/0.6069, allocations: 2.188 MB / 459.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009532/0.6079, allocations: 1.036 MB / 460.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.6082, allocations: 63.44 kB / 460.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.971e-06/0.6082, allocations: 0 / 460.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Templates: time 0.03545/0.6437, allocations: 21.28 MB / 481.8 MB, free: 6.934 MB / 362.7 MB