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_Start.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_Start,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_Start") Notification: Performance of loadModel(Modelica): time 1.75/1.75, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004799/0.00048, allocations: 12 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.0838, allocations: 44.5 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4482, allocations: 93.2 MB / 401.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.4485, allocations: 93.61 kB / 401.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1018/0.5503, allocations: 28.08 MB / 429.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.5503, allocations: 0 / 429.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.288e-05/0.5504, allocations: 23.47 kB / 429.8 MB, free: 6.719 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.002129/0.5525, allocations: 1.261 MB / 431.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.5526, allocations: 7.75 kB / 431.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008567/0.5535, allocations: 183.4 kB / 431.3 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.555, allocations: 0.8099 MB / 432.1 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.628e-05/0.5551, allocations: 68.81 kB / 432.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.5552, allocations: 97 kB / 432.3 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.5572, allocations: 0.9267 MB / 433.2 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/0.5572, allocations: 7.781 kB / 433.2 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.5575, allocations: 39.12 kB / 433.2 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.5575, allocations: 22.75 kB / 433.3 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.5591, allocations: 0.6429 MB / 433.9 MB, free: 4.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005377/0.5645, allocations: 3.921 MB / 437.8 MB, free: 1.434 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.5653, allocations: 460.3 kB / 438.3 MB, free: 1.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.5654, allocations: 4 kB / 438.3 MB, free: 1.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.5654, allocations: 38 kB / 438.3 MB, free: 1.047 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.932e-06/0.5654, allocations: 0 / 438.3 MB, free: 1.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003203/0.5687, allocations: 1.448 MB / 439.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.5687, allocations: 81.55 kB / 439.8 MB, free: 15.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.57, allocations: 0.6992 MB / 440.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.5701, allocations: 37.08 kB / 440.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.5705, allocations: 0.5565 MB / 441.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.5707, allocations: 174.7 kB / 441.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.5708, allocations: 14.38 kB / 441.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.571, allocations: 344.9 kB / 441.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/0.5716, allocations: 169.7 kB / 441.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.5723, allocations: 459.2 kB / 442.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000583/0.5729, allocations: 255.4 kB / 442.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5729, allocations: 0 / 442.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001738/0.5747, allocations: 0.7182 MB / 443.2 MB, free: 12.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.5747, allocations: 11.94 kB / 443.3 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.5747, allocations: 8.375 kB / 443.3 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/0.5751, allocations: 87.48 kB / 443.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006715/0.5758, allocations: 158.6 kB / 443.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003422/0.5792, allocations: 2.938 MB / 446.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.5799, allocations: 31.67 kB / 446.5 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-05/0.58, allocations: 39.25 kB / 446.5 MB, free: 9.629 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.0005404/0.5806, allocations: 261.2 kB / 446.8 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.5808, allocations: 90.88 kB / 446.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.5821, allocations: 0.4945 MB / 447.3 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.935e-06/0.5821, allocations: 8 kB / 447.4 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.821e-06/0.5821, allocations: 3.938 kB / 447.4 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.484e-06/0.5821, allocations: 0 / 447.4 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.5851, allocations: 1.432 MB / 448.8 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.745e-06/0.5852, allocations: 4 kB / 448.8 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.5856, allocations: 79.7 kB / 448.9 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002924/0.5859, allocations: 75.2 kB / 448.9 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.586, allocations: 21.64 kB / 449 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004172/0.5902, allocations: 2.91 MB / 451.9 MB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.622e-06/0.5902, allocations: 0 / 451.9 MB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.592, allocations: 0.8831 MB / 452.8 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.5924, allocations: 196.4 kB / 453 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.5925, allocations: 12.88 kB / 453 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005689/0.5931, allocations: 27.42 kB / 453 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5933, allocations: 36.89 kB / 453 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.5933, allocations: 18.61 kB / 453 MB, free: 3.703 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001032/0.5943, allocations: 0.5319 MB / 453.6 MB, free: 3.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.5944, allocations: 3.938 kB / 453.6 MB, free: 3.246 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001369/0.5957, allocations: 243.9 kB / 453.8 MB, free: 3.008 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.0005167/0.5963, allocations: 305.4 kB / 454.1 MB, free: 2.707 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.5979, allocations: 0.7115 MB / 454.8 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.254e-06/0.5979, allocations: 0 / 454.8 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009159/0.5988, allocations: 462 kB / 455.3 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.6, allocations: 203.1 kB / 455.5 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.6042, allocations: 2.15 MB / 457.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000898/0.6052, allocations: 1.028 MB / 458.7 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.6054, allocations: 63.38 kB / 458.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.514e-06/0.6054, allocations: 0 / 458.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of Templates: time 0.03334/0.6388, allocations: 20.9 MB / 479.6 MB, free: 9.09 MB / 362.7 MB