Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.708/1.708, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003472, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08806/0.08843, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.4825, allocations: 89.31 MB / 361.9 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.4829, allocations: 92.12 kB / 362 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1333/0.6162, allocations: 30.34 MB / 392.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.6163, allocations: 0 / 392.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.6164, allocations: 24 kB / 392.3 MB, free: 7.371 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.00501/0.6214, allocations: 1.546 MB / 393.9 MB, free: 5.859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.6215, allocations: 8.031 kB / 393.9 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.6226, allocations: 198.2 kB / 394.1 MB, free: 5.656 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.6254, allocations: 0.8425 MB / 394.9 MB, free: 4.945 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.6256, allocations: 118.2 kB / 395 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002785/0.6259, allocations: 110 kB / 395.1 MB, free: 4.781 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003265/0.6292, allocations: 1.141 MB / 396.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.019e-05/0.6293, allocations: 6.859 kB / 396.3 MB, free: 3.895 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/0.6295, allocations: 46.25 kB / 396.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/0.6295, allocations: 35.92 kB / 396.4 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002867/0.6324, allocations: 0.7704 MB / 397.1 MB, free: 3.219 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/0.6427, allocations: 3.914 MB / 401 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.6455, allocations: 0.609 MB / 401.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.27e-05/0.6457, allocations: 12.55 kB / 401.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.6467, allocations: 303.1 kB / 402 MB, free: 14.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.727e-06/0.6467, allocations: 0 / 402 MB, free: 14.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.008046/0.6548, allocations: 2.117 MB / 404.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002641/0.6551, allocations: 479.2 kB / 404.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002331/0.6574, allocations: 1.049 MB / 405.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.6577, allocations: 41.7 kB / 405.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006863/0.6584, allocations: 0.6254 MB / 406.3 MB, free: 9.633 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003547/0.6587, allocations: 236.7 kB / 406.5 MB, free: 9.398 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.6588, allocations: 20 kB / 406.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.659, allocations: 346.8 kB / 406.8 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.6601, allocations: 258.5 kB / 407.1 MB, free: 8.781 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002319/0.6625, allocations: 0.7208 MB / 407.8 MB, free: 7.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.6646, allocations: 414.3 kB / 408.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-05/0.6647, allocations: 4 kB / 408.2 MB, free: 7.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.005627/0.6703, allocations: 1.084 MB / 409.3 MB, free: 6.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.6705, allocations: 63.41 kB / 409.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-05/0.6705, allocations: 12 kB / 409.4 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.672, allocations: 173.6 kB / 409.6 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/0.6744, allocations: 211.7 kB / 409.8 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00755/0.682, allocations: 3.605 MB / 413.4 MB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.6837, allocations: 84.03 kB / 413.4 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.6838, allocations: 47.98 kB / 413.5 MB, free: 1.852 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008783/0.6847, allocations: 297.5 kB / 413.8 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/0.685, allocations: 122.5 kB / 413.9 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/0.6876, allocations: 0.7231 MB / 414.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.6877, allocations: 7.953 kB / 414.6 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.6877, allocations: 4 kB / 414.6 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002213/0.6899, allocations: 0.9569 MB / 415.6 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00512/0.6951, allocations: 1.801 MB / 417.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.6952, allocations: 8.031 kB / 417.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.6962, allocations: 111.8 kB / 417.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007549/0.697, allocations: 133.6 kB / 417.6 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/0.6971, allocations: 12 kB / 417.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005076/0.7021, allocations: 3.31 MB / 421 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.7022, allocations: 7.984 kB / 421 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003529/0.7058, allocations: 1.096 MB / 422.1 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007479/0.7065, allocations: 243.7 kB / 422.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.7069, allocations: 15.98 kB / 422.3 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.7079, allocations: 47.91 kB / 422.4 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.7082, allocations: 68.38 kB / 422.4 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/0.7082, allocations: 20 kB / 422.5 MB, free: 8.324 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.7099, allocations: 0.6969 MB / 423.2 MB, free: 7.621 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7099, allocations: 0 / 423.2 MB, free: 7.621 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002038/0.712, allocations: 356.1 kB / 423.5 MB, free: 7.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007712/0.7128, allocations: 360 kB / 423.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003418/0.7162, allocations: 1.107 MB / 425 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.7163, allocations: 1.812 kB / 425 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001605/0.7179, allocations: 0.5477 MB / 425.5 MB, free: 5.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.7203, allocations: 303.6 kB / 425.8 MB, free: 4.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006872/0.7272, allocations: 2.761 MB / 428.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009497/0.7282, allocations: 1.105 MB / 429.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004474/0.7287, allocations: 83.38 kB / 429.8 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of SimCode: time 1.813e-06/0.7287, allocations: 4 kB / 429.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of Templates: time 0.2713/1, allocations: 25.59 MB / 455.3 MB, free: 90.48 MB / 346.7 MB