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.829/1.829, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.829e-05/2.835e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2091, allocations: 38.78 MB / 267.6 MB, free: 9.301 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.3391, allocations: 88 MB / 355.6 MB, free: 1.16 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3395, allocations: 83.95 kB / 355.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2797/0.6192, allocations: 28.25 MB / 383.9 MB, free: 63.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.428e-06/0.6193, allocations: 3.938 kB / 383.9 MB, free: 63.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.446e-05/0.6193, allocations: 27.98 kB / 384 MB, free: 63.32 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001842/0.6212, allocations: 1.103 MB / 385.1 MB, free: 62.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.6212, allocations: 8.031 kB / 385.1 MB, free: 62.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007969/0.6221, allocations: 190.3 kB / 385.3 MB, free: 61.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.6239, allocations: 0.7925 MB / 386.1 MB, free: 61.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.998e-05/0.6239, allocations: 70 kB / 386.1 MB, free: 61.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.6241, allocations: 107.9 kB / 386.2 MB, free: 60.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.6259, allocations: 0.8919 MB / 387.1 MB, free: 60.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/0.626, allocations: 3.938 kB / 387.1 MB, free: 60.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.6261, allocations: 40 kB / 387.2 MB, free: 60 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.6261, allocations: 28 kB / 387.2 MB, free: 59.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.6275, allocations: 0.5819 MB / 387.8 MB, free: 59.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.6335, allocations: 3.912 MB / 391.7 MB, free: 55.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007114/0.6342, allocations: 440.9 kB / 392.1 MB, free: 54.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.6348, allocations: 240.8 kB / 392.4 MB, free: 54.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.6348, allocations: 4 kB / 392.4 MB, free: 54.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.6349, allocations: 43.19 kB / 392.4 MB, free: 54.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 4.056e-06/0.6349, allocations: 0 / 392.4 MB, free: 54.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=47): time 0.002566/0.6375, allocations: 1.203 MB / 393.6 MB, free: 53.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.6375, allocations: 81.55 kB / 393.7 MB, free: 53.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.6387, allocations: 0.6879 MB / 394.4 MB, free: 52.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.6387, allocations: 37.69 kB / 394.4 MB, free: 52.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.639, allocations: 0.5667 MB / 395 MB, free: 51.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.6391, allocations: 169.6 kB / 395.1 MB, free: 51.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.6392, allocations: 20 kB / 395.2 MB, free: 51.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.6393, allocations: 338.8 kB / 395.5 MB, free: 51.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.6396, allocations: 153.6 kB / 395.6 MB, free: 51.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004658/0.6401, allocations: 442 kB / 396.1 MB, free: 50.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005107/0.6406, allocations: 237.5 kB / 396.3 MB, free: 50.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.246e-06/0.6406, allocations: 4 kB / 396.3 MB, free: 50.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001409/0.6421, allocations: 0.6966 MB / 397 MB, free: 49.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.6421, allocations: 13.08 kB / 397 MB, free: 49.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.6421, allocations: 15.94 kB / 397 MB, free: 49.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.6425, allocations: 93.97 kB / 397.1 MB, free: 49.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006394/0.6432, allocations: 159.7 kB / 397.3 MB, free: 49.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.6456, allocations: 2.993 MB / 400.3 MB, free: 46.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000873/0.6465, allocations: 36.05 kB / 400.3 MB, free: 46.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.6466, allocations: 40 kB / 400.3 MB, free: 46.03 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 (85): * Single equations (assignments): 83 * 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.0001485/0.6468, allocations: 144.7 kB / 400.5 MB, free: 45.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.6469, allocations: 90.91 kB / 400.6 MB, free: 45.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.648, allocations: 498.5 kB / 401.1 MB, free: 45.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.648, allocations: 4 kB / 401.1 MB, free: 45.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.488e-06/0.6481, allocations: 3.953 kB / 401.1 MB, free: 45.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.844e-06/0.6481, allocations: 7.938 kB / 401.1 MB, free: 45.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.6506, allocations: 1.423 MB / 402.5 MB, free: 43.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.1e-06/0.6507, allocations: 8.031 kB / 402.5 MB, free: 43.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.6511, allocations: 67.91 kB / 402.6 MB, free: 43.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/0.6514, allocations: 85.61 kB / 402.7 MB, free: 43.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.6515, allocations: 16 kB / 402.7 MB, free: 43.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002354/0.6538, allocations: 2.978 MB / 405.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.813e-06/0.6539, allocations: 7.953 kB / 405.7 MB, free: 40.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.6553, allocations: 0.8443 MB / 406.5 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.6558, allocations: 196.1 kB / 406.7 MB, free: 39.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.656, allocations: 15.95 kB / 406.7 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005925/0.6566, allocations: 31.97 kB / 406.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.6567, allocations: 43.83 kB / 406.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.6567, allocations: 12 kB / 406.8 MB, free: 39.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008891/0.6576, allocations: 0.5226 MB / 407.3 MB, free: 38.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.6577, allocations: 0 / 407.3 MB, free: 38.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00125/0.6589, allocations: 240 kB / 407.6 MB, free: 38.33 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 (39): * Single equations (assignments): 37 * 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.0004538/0.6594, allocations: 305.4 kB / 407.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.6606, allocations: 0.6788 MB / 408.5 MB, free: 37.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.341e-06/0.6607, allocations: 0 / 408.5 MB, free: 37.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006639/0.6613, allocations: 443 kB / 409 MB, free: 36.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.6627, allocations: 207.1 kB / 409.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.6657, allocations: 1.305 MB / 410.5 MB, free: 35.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/0.6662, allocations: 1.036 MB / 411.5 MB, free: 34.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.6665, allocations: 63.44 kB / 411.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.594e-06/0.6665, allocations: 0 / 411.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of Templates: time 0.02608/0.6926, allocations: 20.87 MB / 432.4 MB, free: 13.33 MB / 298.7 MB