Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.548/1.548, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06852/0.0689, allocations: 38.78 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.301/0.3699, allocations: 88.09 MB / 360.1 MB, free: 2.152 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.3702, allocations: 86.58 kB / 360.2 MB, free: 2.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1111/0.4813, allocations: 28.23 MB / 388.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.379e-06/0.4813, allocations: 0 / 388.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.16e-05/0.4814, allocations: 20 kB / 388.4 MB, free: 10.24 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.002768/0.4842, allocations: 1.254 MB / 389.7 MB, free: 9.023 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.4842, allocations: 8.031 kB / 389.7 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008885/0.4851, allocations: 190.3 kB / 389.9 MB, free: 8.828 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.4872, allocations: 0.7957 MB / 390.7 MB, free: 8.156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.388e-05/0.4873, allocations: 80.12 kB / 390.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.4875, allocations: 106.5 kB / 390.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/0.4897, allocations: 0.917 MB / 391.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.4898, allocations: 3.938 kB / 391.8 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.4899, allocations: 46.5 kB / 391.8 MB, free: 7.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/0.49, allocations: 24 kB / 391.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.4917, allocations: 0.6371 MB / 392.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007334/0.4991, allocations: 3.926 MB / 396.4 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009769/0.5001, allocations: 457.9 kB / 396.9 MB, free: 2.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.5002, allocations: 7.984 kB / 396.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.5002, allocations: 38.56 kB / 396.9 MB, free: 2.676 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 3.951e-06/0.5002, allocations: 3.938 kB / 396.9 MB, free: 2.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003871/0.5041, allocations: 1.446 MB / 398.4 MB, free: 1.148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.5042, allocations: 81.55 kB / 398.4 MB, free: 1.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.5056, allocations: 0.6956 MB / 399.1 MB, free: 356 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.961e-05/0.5057, allocations: 33.7 kB / 399.2 MB, free: 316 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005129/0.5062, allocations: 0.567 MB / 399.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.5064, allocations: 165.6 kB / 399.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.5065, allocations: 16 kB / 399.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.5067, allocations: 338.8 kB / 400.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.5072, allocations: 169.9 kB / 400.4 MB, free: 15.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/0.508, allocations: 464.1 kB / 400.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.5086, allocations: 252.6 kB / 401.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.434e-06/0.5086, allocations: 7.781 kB / 401.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00179/0.5104, allocations: 0.7241 MB / 401.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.5105, allocations: 16.09 kB / 401.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.5105, allocations: 8 kB / 401.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003476/0.5109, allocations: 77.69 kB / 401.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007379/0.5116, allocations: 159.7 kB / 402.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003433/0.5151, allocations: 2.931 MB / 405 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008844/0.516, allocations: 39.97 kB / 405.1 MB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-05/0.5161, allocations: 35.98 kB / 405.1 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.0006616/0.5168, allocations: 269.4 kB / 405.4 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.517, allocations: 86.97 kB / 405.5 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.5183, allocations: 0.4988 MB / 406 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.5184, allocations: 8 kB / 406 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.374e-06/0.5184, allocations: 3.984 kB / 406 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.492e-06/0.5184, allocations: 0 / 406 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.5217, allocations: 1.427 MB / 407.4 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.721e-06/0.5217, allocations: 4 kB / 407.4 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.5222, allocations: 84.05 kB / 407.5 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003064/0.5225, allocations: 65.69 kB / 407.5 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.566e-05/0.5225, allocations: 16.23 kB / 407.6 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/0.5259, allocations: 2.927 MB / 410.5 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.123e-06/0.526, allocations: 0 / 410.5 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.528, allocations: 0.8794 MB / 411.4 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005266/0.5285, allocations: 200 kB / 411.6 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.5287, allocations: 8 kB / 411.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.5293, allocations: 31.98 kB / 411.6 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.5294, allocations: 39.89 kB / 411.6 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.992e-05/0.5295, allocations: 16 kB / 411.7 MB, free: 2.898 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.5306, allocations: 0.5303 MB / 412.2 MB, free: 2.371 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.5306, allocations: 0 / 412.2 MB, free: 2.371 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001398/0.532, allocations: 243.9 kB / 412.4 MB, free: 2.133 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.0005648/0.5326, allocations: 309.5 kB / 412.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.5343, allocations: 0.7111 MB / 413.4 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.198e-06/0.5344, allocations: 0.5625 kB / 413.4 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009665/0.5354, allocations: 465 kB / 413.9 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.5368, allocations: 209.6 kB / 414.1 MB, free: 412 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007229/0.544, allocations: 2.141 MB / 416.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.5455, allocations: 1.032 MB / 417.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004015/0.546, allocations: 59.44 kB / 417.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.935e-06/0.546, allocations: 3.938 kB / 417.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of Templates: time 0.2462/0.7922, allocations: 20.88 MB / 438.2 MB, free: 96.66 MB / 346.7 MB