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_SinglePhase.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_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.574/1.574, allocations: 171.2 MB / 184.2 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.414e-05, allocations: 0 / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2068, allocations: 38.77 MB / 267.6 MB, free: 9.461 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.3383, allocations: 88.81 MB / 356.4 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.3386, allocations: 79.95 kB / 356.5 MB, free: 448 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3211/0.6598, allocations: 28.71 MB / 385.2 MB, free: 62.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.241e-06/0.6598, allocations: 3.938 kB / 385.2 MB, free: 62.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.579e-05/0.6599, allocations: 24 kB / 385.2 MB, free: 62.51 MB / 298.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.001905/0.6618, allocations: 1.13 MB / 386.4 MB, free: 61.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.6619, allocations: 8.031 kB / 386.4 MB, free: 61.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008432/0.6627, allocations: 194.3 kB / 386.5 MB, free: 61.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.6646, allocations: 0.8049 MB / 387.4 MB, free: 60.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/0.6647, allocations: 74 kB / 387.4 MB, free: 60.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.6649, allocations: 103.9 kB / 387.5 MB, free: 60.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.6667, allocations: 0.9035 MB / 388.4 MB, free: 59.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.272e-05/0.6668, allocations: 7.984 kB / 388.4 MB, free: 59.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.6669, allocations: 40 kB / 388.5 MB, free: 59.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.6669, allocations: 24 kB / 388.5 MB, free: 59.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.6683, allocations: 0.6014 MB / 389.1 MB, free: 58.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/0.6793, allocations: 3.943 MB / 393 MB, free: 54.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.6808, allocations: 456.5 kB / 393.5 MB, free: 53.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.6819, allocations: 248.8 kB / 393.7 MB, free: 53.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.578e-05/0.682, allocations: 4 kB / 393.7 MB, free: 53.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.6821, allocations: 39.28 kB / 393.8 MB, free: 53.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 6.659e-06/0.6821, allocations: 0 / 393.8 MB, free: 53.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.004871/0.687, allocations: 1.216 MB / 395 MB, free: 52.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.6871, allocations: 85.55 kB / 395.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/0.6893, allocations: 0.6998 MB / 395.8 MB, free: 51.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.539e-05/0.6894, allocations: 37.7 kB / 395.8 MB, free: 51.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005487/0.69, allocations: 0.5784 MB / 396.4 MB, free: 50.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002319/0.6903, allocations: 165.6 kB / 396.6 MB, free: 50.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.329e-05/0.6904, allocations: 16 kB / 396.6 MB, free: 50.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.6905, allocations: 346.7 kB / 396.9 MB, free: 50.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007231/0.6913, allocations: 157.6 kB / 397.1 MB, free: 50.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009638/0.6922, allocations: 446 kB / 397.5 MB, free: 49.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009626/0.6932, allocations: 241.5 kB / 397.7 MB, free: 49.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.6933, allocations: 4 kB / 397.7 MB, free: 49.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002936/0.6962, allocations: 0.7083 MB / 398.4 MB, free: 48.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.6963, allocations: 8 kB / 398.5 MB, free: 48.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.6963, allocations: 12 kB / 398.5 MB, free: 48.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006578/0.697, allocations: 97.95 kB / 398.6 MB, free: 48.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.6984, allocations: 163.7 kB / 398.7 MB, free: 48.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.7029, allocations: 2.995 MB / 401.7 MB, free: 45.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.7047, allocations: 44.03 kB / 401.8 MB, free: 45.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.7048, allocations: 36 kB / 401.8 MB, free: 45.02 MB / 298.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 () * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.7051, allocations: 152.7 kB / 401.9 MB, free: 44.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003051/0.7055, allocations: 90.88 kB / 402 MB, free: 44.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/0.7076, allocations: 0.4986 MB / 402.5 MB, free: 44.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.7077, allocations: 4 kB / 402.5 MB, free: 44.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.7077, allocations: 7.953 kB / 402.5 MB, free: 44.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.7077, allocations: 3.984 kB / 402.5 MB, free: 44.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.7127, allocations: 1.454 MB / 404 MB, free: 42.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/0.7128, allocations: 7.984 kB / 404 MB, free: 42.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/0.7136, allocations: 71.91 kB / 404.1 MB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006139/0.7143, allocations: 90.03 kB / 404.2 MB, free: 42.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.272e-05/0.7144, allocations: 15.98 kB / 404.2 MB, free: 42.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004381/0.7188, allocations: 2.974 MB / 407.2 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.119e-06/0.7188, allocations: 3.938 kB / 407.2 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.7217, allocations: 0.8717 MB / 408 MB, free: 38.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007096/0.7224, allocations: 200 kB / 408.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.7228, allocations: 15.95 kB / 408.2 MB, free: 38.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.724, allocations: 35.97 kB / 408.3 MB, free: 38.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.7242, allocations: 35.95 kB / 408.3 MB, free: 38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.335e-05/0.7243, allocations: 12 kB / 408.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001799/0.7261, allocations: 0.5382 MB / 408.9 MB, free: 37.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.124e-06/0.7261, allocations: 4 kB / 408.9 MB, free: 37.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002542/0.7287, allocations: 244 kB / 409.1 MB, free: 37.21 MB / 298.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 () * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007644/0.7295, allocations: 306.9 kB / 409.4 MB, free: 36.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.7318, allocations: 0.6759 MB / 410.1 MB, free: 36.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.7318, allocations: 0.6875 kB / 410.1 MB, free: 36.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.7331, allocations: 448.9 kB / 410.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.7357, allocations: 203.7 kB / 410.7 MB, free: 35.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/0.741, allocations: 1.335 MB / 412.1 MB, free: 34.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000997/0.742, allocations: 1.04 MB / 413.1 MB, free: 33.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/0.7425, allocations: 59.44 kB / 413.1 MB, free: 33.03 MB / 298.7 MB Notification: Performance of SimCode: time 2.463e-06/0.7425, allocations: 0 / 413.1 MB, free: 33.03 MB / 298.7 MB Notification: Performance of Templates: time 0.0341/0.7766, allocations: 21.27 MB / 434.4 MB, free: 11.78 MB / 298.7 MB