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.877/1.877, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005617, allocations: 8 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09734, allocations: 44.51 MB / 308.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009823/0.1072, allocations: 6.5 MB / 314.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005388/0.1127, allocations: 2.528 MB / 317.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009022/0.1136, allocations: 23.94 kB / 317.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.1152, allocations: 477.7 kB / 317.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001898/0.1171, allocations: 490.5 kB / 318.4 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.1178, allocations: 151.8 kB / 318.5 MB, free: 6.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.1202, allocations: 1.038 MB / 319.6 MB, free: 5.781 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008964/0.1211, allocations: 423.5 kB / 320 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008338/0.122, allocations: 450.2 kB / 320.4 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007046/0.1227, allocations: 485.7 kB / 320.9 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001576/0.1229, allocations: 64 kB / 320.9 MB, free: 4.371 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003678/0.1233, allocations: 107.9 kB / 321 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.1235, allocations: 187.2 kB / 321.2 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.1238, allocations: 257.1 kB / 321.5 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.1257, allocations: 1.316 MB / 322.8 MB, free: 2.504 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.302e-06/0.1257, allocations: 0 / 322.8 MB, free: 2.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.293e-06/0.1257, allocations: 0 / 322.8 MB, free: 2.504 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1257, allocations: 0 / 322.8 MB, free: 2.504 MB / 266.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.002445/0.1282, allocations: 1.254 MB / 324.1 MB, free: 1.195 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1282, allocations: 8.031 kB / 324.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006616/0.1289, allocations: 174.4 kB / 324.2 MB, free: 1.016 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.1304, allocations: 0.7066 MB / 324.9 MB, free: 276 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.28e-05/0.1305, allocations: 74 kB / 325 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001905/0.1308, allocations: 103.9 kB / 325.1 MB, free: 96 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.133, allocations: 0.9269 MB / 326 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.473e-05/0.1331, allocations: 4 kB / 326 MB, free: 15.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.1332, allocations: 40 kB / 326.1 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.1332, allocations: 24 kB / 326.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001778/0.135, allocations: 0.6402 MB / 326.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007295/0.1423, allocations: 3.903 MB / 330.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009656/0.1433, allocations: 448.3 kB / 331.1 MB, free: 9.844 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.394e-05/0.1434, allocations: 8.328 kB / 331.1 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.1435, allocations: 34.89 kB / 331.1 MB, free: 9.793 MB / 282.7 MB Notification: Performance of pre-optimization done (n=40): time 3.56e-06/0.1435, allocations: 4 kB / 331.1 MB, free: 9.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.003631/0.1471, allocations: 1.375 MB / 332.5 MB, free: 8.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.1472, allocations: 81.11 kB / 332.6 MB, free: 8.242 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.1487, allocations: 0.7706 MB / 333.4 MB, free: 7.465 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.1488, allocations: 33.7 kB / 333.4 MB, free: 7.426 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005276/0.1493, allocations: 0.5706 MB / 334 MB, free: 6.848 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1495, allocations: 157.8 kB / 334.1 MB, free: 6.691 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.1496, allocations: 16 kB / 334.1 MB, free: 6.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.1498, allocations: 346.8 kB / 334.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.1503, allocations: 165.9 kB / 334.6 MB, free: 6.168 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007235/0.151, allocations: 456 kB / 335.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006167/0.1517, allocations: 249.4 kB / 335.3 MB, free: 5.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.814e-06/0.1517, allocations: 4 kB / 335.3 MB, free: 5.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001748/0.1534, allocations: 0.6935 MB / 336 MB, free: 4.633 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.1535, allocations: 8 kB / 336 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.1535, allocations: 12 kB / 336 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/0.1538, allocations: 73.94 kB / 336.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006817/0.1545, allocations: 163.7 kB / 336.3 MB, free: 4.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/0.1577, allocations: 2.798 MB / 339.1 MB, free: 1.309 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007296/0.1585, allocations: 39.94 kB / 339.1 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.1585, allocations: 32 kB / 339.1 MB, free: 1.238 MB / 282.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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005729/0.1591, allocations: 261.6 kB / 339.4 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.1593, allocations: 86.97 kB / 339.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.1606, allocations: 491.2 kB / 340 MB, free: 400 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.723e-06/0.1606, allocations: 4 kB / 340 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1606, allocations: 0 / 340 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.1606, allocations: 4.125 kB / 340 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.1636, allocations: 1.38 MB / 341.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.668e-06/0.1637, allocations: 4 kB / 341.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.1641, allocations: 67.91 kB / 341.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002531/0.1644, allocations: 61.67 kB / 341.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.1644, allocations: 12 kB / 341.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003067/0.1675, allocations: 2.794 MB / 344.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.73e-06/0.1675, allocations: 4.031 kB / 344.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.1693, allocations: 0.7614 MB / 345 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000398/0.1697, allocations: 192.1 kB / 345.2 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.1699, allocations: 8 kB / 345.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.1704, allocations: 35.97 kB / 345.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.1706, allocations: 35.89 kB / 345.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.1706, allocations: 15.89 kB / 345.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.1716, allocations: 0.5264 MB / 345.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.1716, allocations: 0 / 345.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001166/0.1728, allocations: 196 kB / 346 MB, free: 9.883 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 () * Number of clocked 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002609/0.1731, allocations: 123.1 kB / 346.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.1747, allocations: 0.6827 MB / 346.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.522e-06/0.1747, allocations: 0 / 346.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008717/0.1756, allocations: 441.4 kB / 347.3 MB, free: 8.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.177, allocations: 196.4 kB / 347.5 MB, free: 8.395 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004186/0.1812, allocations: 2.144 MB / 349.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008982/0.1821, allocations: 1.02 MB / 350.6 MB, free: 5.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.1824, allocations: 59.44 kB / 350.7 MB, free: 5.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.749e-06/0.1824, allocations: 0 / 350.7 MB, free: 5.09 MB / 298.7 MB Notification: Performance of Templates: time 0.03041/0.2128, allocations: 19.57 MB / 370.3 MB, free: 1.531 MB / 314.7 MB