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.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.947/1.947, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.000369, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09836, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4457/0.5442, allocations: 88.69 MB / 397.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.5445, allocations: 92.36 kB / 397.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09204/0.6366, allocations: 22.95 MB / 420.7 MB, free: 7.195 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6367, allocations: 0 / 420.7 MB, free: 7.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.142e-05/0.6367, allocations: 23.38 kB / 420.7 MB, free: 7.191 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002927/0.6397, allocations: 1.092 MB / 421.8 MB, free: 6.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.6397, allocations: 7.844 kB / 421.8 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008287/0.6406, allocations: 148.1 kB / 422 MB, free: 6.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.6426, allocations: 0.6892 MB / 422.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.6427, allocations: 59.94 kB / 422.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001866/0.6429, allocations: 84.03 kB / 422.8 MB, free: 5.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.645, allocations: 0.7783 MB / 423.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-05/0.6451, allocations: 7.922 kB / 423.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.6452, allocations: 31.44 kB / 423.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.6453, allocations: 19.22 kB / 423.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.647, allocations: 0.534 MB / 424.2 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006226/0.6532, allocations: 3.453 MB / 427.6 MB, free: 3.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007314/0.654, allocations: 229 kB / 427.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.6541, allocations: 7.844 kB / 427.9 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.6541, allocations: 41.36 kB / 427.9 MB, free: 3.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 4.178e-06/0.6541, allocations: 0 / 427.9 MB, free: 3.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.003158/0.6573, allocations: 1.072 MB / 429 MB, free: 2.629 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.6574, allocations: 80.56 kB / 429.1 MB, free: 2.535 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.6586, allocations: 0.7091 MB / 429.8 MB, free: 2.297 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.6587, allocations: 29.02 kB / 429.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.6591, allocations: 0.5185 MB / 430.3 MB, free: 1.902 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.6592, allocations: 108.4 kB / 430.4 MB, free: 1.824 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.6592, allocations: 13.38 kB / 430.4 MB, free: 1.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.983e-05/0.6593, allocations: 334.6 kB / 430.8 MB, free: 1.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004712/0.6598, allocations: 129.7 kB / 430.9 MB, free: 1.484 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/0.6604, allocations: 429.3 kB / 431.3 MB, free: 1.078 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000594/0.661, allocations: 206.2 kB / 431.5 MB, free: 1.043 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.661, allocations: 0 / 431.5 MB, free: 1.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001476/0.6625, allocations: 0.5879 MB / 432.1 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.6626, allocations: 11.53 kB / 432.1 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.6626, allocations: 7.781 kB / 432.1 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002145/0.6628, allocations: 31.36 kB / 432.1 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008033/0.6636, allocations: 152.1 kB / 432.3 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.6648, allocations: 1.293 MB / 433.6 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009004/0.6658, allocations: 38.14 kB / 433.6 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.308e-05/0.6658, allocations: 34.31 kB / 433.6 MB, free: 15.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (74): * Single equations (assignments): 73 * 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.0005686/0.6664, allocations: 231.6 kB / 433.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.6666, allocations: 69.44 kB / 433.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.6677, allocations: 344.5 kB / 434.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.6677, allocations: 3.875 kB / 434.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6678, allocations: 0 / 434.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.6678, allocations: 4.047 kB / 434.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.6704, allocations: 1.109 MB / 435.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.6704, allocations: 3.969 kB / 435.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005018/0.671, allocations: 62.72 kB / 435.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.6711, allocations: 24.03 kB / 435.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.6712, allocations: 7.562 kB / 435.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.6723, allocations: 1.273 MB / 436.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.6724, allocations: 3.953 kB / 436.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.6739, allocations: 0.5817 MB / 437.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.6743, allocations: 165.7 kB / 437.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.6745, allocations: 9.344 kB / 437.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000545/0.6751, allocations: 37.97 kB / 437.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.732e-05/0.6752, allocations: 24.41 kB / 437.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.6752, allocations: 7.75 kB / 437.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009339/0.6762, allocations: 482 kB / 438.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6762, allocations: 0 / 438.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001174/0.6774, allocations: 195.8 kB / 438.3 MB, free: 12.69 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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 (27): * Single equations (assignments): 26 * 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.0005696/0.678, allocations: 285.4 kB / 438.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.6794, allocations: 474.4 kB / 439 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.6794, allocations: 0.625 kB / 439 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005937/0.68, allocations: 248.7 kB / 439.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.6815, allocations: 168.5 kB / 439.4 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.6857, allocations: 1.792 MB / 441.2 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/0.6864, allocations: 0.9647 MB / 442.2 MB, free: 9.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/0.6867, allocations: 47.44 kB / 442.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6867, allocations: 0 / 442.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of Templates: time 0.03078/0.7175, allocations: 13.78 MB / 456 MB, free: 11.84 MB / 346.7 MB