Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadModel(Modelica): time 1.803/1.803, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 8 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08879, allocations: 38.77 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3852/0.474, allocations: 88.08 MB / 360.6 MB, free: 2.297 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.4744, allocations: 90.58 kB / 360.7 MB, free: 2.246 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1719/0.6464, allocations: 28.22 MB / 388.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6464, allocations: 0 / 388.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.304e-05/0.6465, allocations: 23.98 kB / 389 MB, free: 10.39 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.00345/0.65, allocations: 1.249 MB / 390.2 MB, free: 9.168 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.6501, allocations: 12.03 kB / 390.2 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/0.6512, allocations: 190.3 kB / 390.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/0.6537, allocations: 0.7939 MB / 391.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.419e-05/0.6538, allocations: 73.88 kB / 391.3 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/0.6541, allocations: 110 kB / 391.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.6566, allocations: 0.9316 MB / 392.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.785e-05/0.6566, allocations: 3.938 kB / 392.3 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.6568, allocations: 40.38 kB / 392.4 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/0.6568, allocations: 24 kB / 392.4 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.6589, allocations: 0.6409 MB / 393 MB, free: 7.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008477/0.6674, allocations: 3.921 MB / 397 MB, free: 3.297 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.6686, allocations: 459.6 kB / 397.4 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.188e-05/0.6686, allocations: 7.984 kB / 397.4 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.6687, allocations: 38.56 kB / 397.4 MB, free: 2.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 4.99e-06/0.6687, allocations: 4 kB / 397.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004338/0.673, allocations: 1.442 MB / 398.9 MB, free: 1.246 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.6731, allocations: 89.48 kB / 399 MB, free: 1.141 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.6748, allocations: 0.7901 MB / 399.8 MB, free: 352 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.603e-05/0.675, allocations: 37.7 kB / 399.8 MB, free: 308 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005141/0.6755, allocations: 0.5592 MB / 400.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.6757, allocations: 165.6 kB / 400.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.6757, allocations: 16 kB / 400.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.6759, allocations: 338.8 kB / 400.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/0.6766, allocations: 169.9 kB / 401 MB, free: 15.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009207/0.6776, allocations: 472 kB / 401.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007361/0.6784, allocations: 248.5 kB / 401.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.6784, allocations: 4 kB / 401.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002004/0.6804, allocations: 0.7317 MB / 402.5 MB, free: 13.47 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.6804, allocations: 8 kB / 402.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.6805, allocations: 12 kB / 402.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004062/0.6809, allocations: 77.97 kB / 402.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009936/0.6819, allocations: 163.7 kB / 402.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003595/0.6855, allocations: 2.927 MB / 405.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.6867, allocations: 39.89 kB / 405.7 MB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.289e-05/0.6868, allocations: 35.95 kB / 405.7 MB, free: 9.938 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.0007145/0.6875, allocations: 273.5 kB / 406 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.6877, allocations: 82.97 kB / 406.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.6893, allocations: 0.5026 MB / 406.6 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.6893, allocations: 4 kB / 406.6 MB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6893, allocations: 0 / 406.6 MB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.6893, allocations: 7.984 kB / 406.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/0.6928, allocations: 1.427 MB / 408 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6929, allocations: 0 / 408 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006183/0.6935, allocations: 71.91 kB / 408.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003818/0.6939, allocations: 81.8 kB / 408.2 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.694, allocations: 8.469 kB / 408.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/0.6973, allocations: 2.923 MB / 411.1 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.6974, allocations: 8.094 kB / 411.1 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.6997, allocations: 0.7934 MB / 411.9 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004882/0.7002, allocations: 192.1 kB / 412.1 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.7004, allocations: 16 kB / 412.1 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007373/0.7011, allocations: 31.92 kB / 412.1 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.7013, allocations: 43.89 kB / 412.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.7013, allocations: 16 kB / 412.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001224/0.7026, allocations: 0.5264 MB / 412.7 MB, free: 2.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7026, allocations: 0 / 412.7 MB, free: 2.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001356/0.7039, allocations: 251.9 kB / 413 MB, free: 2.25 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 (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.0006106/0.7046, allocations: 305.4 kB / 413.3 MB, free: 1.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.7065, allocations: 0.7153 MB / 414 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.7065, allocations: 0 / 414 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.7076, allocations: 457.7 kB / 414.4 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.7094, allocations: 215.2 kB / 414.6 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004867/0.7143, allocations: 2.153 MB / 416.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008712/0.7152, allocations: 1.024 MB / 417.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.7156, allocations: 63.42 kB / 417.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7156, allocations: 0 / 417.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of Templates: time 0.2986/1.014, allocations: 20.87 MB / 438.8 MB, free: 96.07 MB / 346.7 MB