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_SinglePhase.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_SinglePhase,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_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.852/1.852, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.00036, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0779/0.07828, allocations: 44.5 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009446/0.08778, allocations: 6.625 MB / 315 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00542/0.09324, allocations: 2.59 MB / 317.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.09431, allocations: 27.94 kB / 317.6 MB, free: 7.746 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.09584, allocations: 473.7 kB / 318.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00179/0.09766, allocations: 498.5 kB / 318.5 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006852/0.09836, allocations: 167.8 kB / 318.7 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.1007, allocations: 1.049 MB / 319.8 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008743/0.1016, allocations: 435.5 kB / 320.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.1024, allocations: 462.1 kB / 320.6 MB, free: 4.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000691/0.1031, allocations: 493.7 kB / 321.1 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1033, allocations: 64 kB / 321.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000368/0.1037, allocations: 108 kB / 321.3 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.1039, allocations: 183.2 kB / 321.5 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.1042, allocations: 261.1 kB / 321.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.106, allocations: 1.344 MB / 323.1 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.204e-06/0.106, allocations: 4 kB / 323.1 MB, free: 2.238 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.106, allocations: 0 / 323.1 MB, free: 2.238 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.1061, allocations: 0 / 323.1 MB, free: 2.238 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002616/0.1087, allocations: 1.289 MB / 324.4 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1088, allocations: 8.031 kB / 324.4 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006894/0.1095, allocations: 178.3 kB / 324.5 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/0.1111, allocations: 0.7153 MB / 325.3 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-05/0.1112, allocations: 78 kB / 325.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.1114, allocations: 99.91 kB / 325.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/0.1138, allocations: 0.9425 MB / 326.4 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/0.1138, allocations: 0 / 326.4 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.114, allocations: 44 kB / 326.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.039e-05/0.114, allocations: 24 kB / 326.4 MB, free: 14.74 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.1159, allocations: 0.6559 MB / 327.1 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007345/0.1232, allocations: 3.93 MB / 331 MB, free: 9.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009988/0.1243, allocations: 444.5 kB / 331.5 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.1243, allocations: 4 kB / 331.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.1244, allocations: 42.55 kB / 331.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 7.223e-06/0.1244, allocations: 0 / 331.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.003774/0.1282, allocations: 1.446 MB / 332.9 MB, free: 7.895 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.1283, allocations: 81.11 kB / 333 MB, free: 7.797 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.1298, allocations: 0.7825 MB / 333.8 MB, free: 7.008 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.691e-05/0.1299, allocations: 37.7 kB / 333.8 MB, free: 6.965 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005141/0.1304, allocations: 0.5745 MB / 334.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.1306, allocations: 173.5 kB / 334.6 MB, free: 6.211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.1306, allocations: 16 kB / 334.6 MB, free: 6.195 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.1308, allocations: 338.8 kB / 334.9 MB, free: 5.855 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005272/0.1314, allocations: 177.9 kB / 335.1 MB, free: 5.684 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000775/0.1322, allocations: 471.6 kB / 335.6 MB, free: 5.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006453/0.1328, allocations: 248 kB / 335.8 MB, free: 4.844 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.593e-06/0.1328, allocations: 7.938 kB / 335.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001809/0.1347, allocations: 0.7168 MB / 336.5 MB, free: 4.105 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.1347, allocations: 8.406 kB / 336.5 MB, free: 4.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/0.1348, allocations: 16 kB / 336.6 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/0.1351, allocations: 73.69 kB / 336.6 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006865/0.1358, allocations: 155.7 kB / 336.8 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.1389, allocations: 2.809 MB / 339.6 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007938/0.1398, allocations: 47.95 kB / 339.6 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/0.1399, allocations: 32 kB / 339.7 MB, free: 0.6953 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006059/0.1405, allocations: 261.5 kB / 339.9 MB, free: 440 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.1407, allocations: 86.97 kB / 340 MB, free: 352 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.1421, allocations: 0.4914 MB / 340.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1421, allocations: 4.125 kB / 340.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.441e-06/0.1421, allocations: 8 kB / 340.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.1421, allocations: 0 / 340.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.1453, allocations: 1.422 MB / 341.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.1453, allocations: 4 kB / 341.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.1458, allocations: 76.12 kB / 342 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.1461, allocations: 61.67 kB / 342.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.1461, allocations: 12 kB / 342.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003318/0.1495, allocations: 2.79 MB / 344.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.3e-06/0.1495, allocations: 3.938 kB / 344.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.1514, allocations: 0.7965 MB / 345.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.1518, allocations: 192.1 kB / 345.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.152, allocations: 12 kB / 345.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.1526, allocations: 31.98 kB / 345.9 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.1527, allocations: 35.84 kB / 345.9 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.1527, allocations: 20 kB / 346 MB, free: 9.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001008/0.1538, allocations: 0.5303 MB / 346.5 MB, free: 9.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.574e-06/0.1538, allocations: 0 / 346.5 MB, free: 9.422 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001139/0.1549, allocations: 207.9 kB / 346.7 MB, free: 9.219 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002678/0.1552, allocations: 135.1 kB / 346.8 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.1569, allocations: 0.7023 MB / 347.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.264e-06/0.1569, allocations: 0.5625 kB / 347.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009067/0.1578, allocations: 441 kB / 348 MB, free: 7.895 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.1592, allocations: 211.2 kB / 348.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.1634, allocations: 2.176 MB / 350.3 MB, free: 5.461 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009075/0.1644, allocations: 1.032 MB / 351.4 MB, free: 4.402 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.1646, allocations: 63.44 kB / 351.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.244e-06/0.1647, allocations: 0 / 351.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of Templates: time 0.03218/0.1968, allocations: 19.98 MB / 371.4 MB, free: 380 kB / 314.7 MB