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_SinglePhase.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_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.953/1.953, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000488/0.0004881, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1044, allocations: 44.49 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4391/0.5435, allocations: 93.98 MB / 403 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.5439, allocations: 92.03 kB / 403 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1139/0.6578, allocations: 28.57 MB / 431.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.6579, allocations: 0 / 431.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.658, allocations: 23.38 kB / 431.6 MB, free: 3.922 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.004026/0.6621, allocations: 1.284 MB / 432.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.6621, allocations: 7.75 kB / 432.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.6634, allocations: 193.1 kB / 433.1 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002408/0.6658, allocations: 0.812 MB / 433.9 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/0.6659, allocations: 75.05 kB / 434 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.6661, allocations: 107.2 kB / 434.1 MB, free: 2.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.6685, allocations: 0.9389 MB / 435 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.261e-05/0.6686, allocations: 7.938 kB / 435 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.6687, allocations: 40.94 kB / 435.1 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.6688, allocations: 24 kB / 435.1 MB, free: 1.465 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002174/0.6709, allocations: 0.6584 MB / 435.8 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009195/0.6802, allocations: 3.964 MB / 439.7 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.6814, allocations: 455.6 kB / 440.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.363e-05/0.6815, allocations: 11.98 kB / 440.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.6815, allocations: 33.88 kB / 440.2 MB, free: 13.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.025e-06/0.6815, allocations: 0 / 440.2 MB, free: 13.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.00481/0.6863, allocations: 1.51 MB / 441.7 MB, free: 12.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.6864, allocations: 84.86 kB / 441.8 MB, free: 11.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.6881, allocations: 0.8018 MB / 442.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.6883, allocations: 33.02 kB / 442.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005378/0.6889, allocations: 0.5734 MB / 443.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.6891, allocations: 170 kB / 443.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.6892, allocations: 14.12 kB / 443.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.6894, allocations: 344 kB / 443.7 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007008/0.6901, allocations: 179.3 kB / 443.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009198/0.691, allocations: 486 kB / 444.4 MB, free: 9.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008607/0.6919, allocations: 254.7 kB / 444.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.692, allocations: 4 kB / 444.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002281/0.6942, allocations: 0.7518 MB / 445.4 MB, free: 9.031 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.6943, allocations: 12.03 kB / 445.4 MB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.6944, allocations: 12 kB / 445.4 MB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004278/0.6948, allocations: 76.69 kB / 445.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.6959, allocations: 167.5 kB / 445.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003179/0.6991, allocations: 2.938 MB / 448.6 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.7002, allocations: 43.67 kB / 448.6 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.7003, allocations: 35.69 kB / 448.7 MB, free: 5.754 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.0007564/0.7011, allocations: 259.4 kB / 448.9 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003083/0.7014, allocations: 90.88 kB / 449 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.7032, allocations: 0.5311 MB / 449.5 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.7033, allocations: 8 kB / 449.6 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.7033, allocations: 4 kB / 449.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.7033, allocations: 3.984 kB / 449.6 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004344/0.7077, allocations: 1.47 MB / 451 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.7078, allocations: 0 / 451 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006997/0.7085, allocations: 83.27 kB / 451.1 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003967/0.7089, allocations: 73.16 kB / 451.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.136e-05/0.709, allocations: 14.25 kB / 451.2 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.7122, allocations: 2.918 MB / 454.1 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.7123, allocations: 4.031 kB / 454.1 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002403/0.7147, allocations: 0.8311 MB / 455 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005002/0.7152, allocations: 207.9 kB / 455.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/0.7154, allocations: 12 kB / 455.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007434/0.7162, allocations: 31.98 kB / 455.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.7163, allocations: 47.88 kB / 455.2 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/0.7164, allocations: 8 kB / 455.3 MB, free: 15.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.7176, allocations: 0.5459 MB / 455.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7176, allocations: 0 / 455.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001561/0.7191, allocations: 236 kB / 456 MB, free: 14.62 MB / 346.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.0007012/0.7199, allocations: 304.3 kB / 456.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.7221, allocations: 0.7343 MB / 457.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/0.7221, allocations: 0 / 457.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.7234, allocations: 478.4 kB / 457.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.7253, allocations: 215.8 kB / 457.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00551/0.7309, allocations: 2.19 MB / 459.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007978/0.7317, allocations: 1.036 MB / 461 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.7321, allocations: 63.42 kB / 461 MB, free: 9.512 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7321, allocations: 0 / 461 MB, free: 9.512 MB / 346.7 MB Notification: Performance of Templates: time 0.04482/0.777, allocations: 21.27 MB / 482.3 MB, free: 4.238 MB / 362.7 MB