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.DCPM_Cooling.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.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.592/1.592, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003533, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06945/0.06983, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3495/0.4194, allocations: 89.32 MB / 361.3 MB, free: 0.957 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.4197, allocations: 87.14 kB / 361.4 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1263/0.5461, allocations: 30.34 MB / 391.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.225e-06/0.5461, allocations: 0 / 391.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.941e-05/0.5462, allocations: 31.94 kB / 391.8 MB, free: 7.316 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.003294/0.5495, allocations: 1.536 MB / 393.3 MB, free: 5.812 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.5496, allocations: 8.031 kB / 393.3 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.5503, allocations: 198.2 kB / 393.5 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/0.5522, allocations: 0.8428 MB / 394.4 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.5524, allocations: 118.3 kB / 394.5 MB, free: 4.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/0.5526, allocations: 114.4 kB / 394.6 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.5552, allocations: 1.136 MB / 395.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/0.5552, allocations: 0 / 395.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.5554, allocations: 46.31 kB / 395.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.423e-05/0.5554, allocations: 28 kB / 395.8 MB, free: 3.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002188/0.5576, allocations: 0.7747 MB / 396.6 MB, free: 3.176 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007743/0.5654, allocations: 3.918 MB / 400.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.5675, allocations: 0.6009 MB / 401.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.863e-05/0.5676, allocations: 12.55 kB / 401.1 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008131/0.5684, allocations: 303.5 kB / 401.4 MB, free: 14.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.92e-06/0.5684, allocations: 0 / 401.4 MB, free: 14.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.00609/0.5745, allocations: 2.113 MB / 403.5 MB, free: 11.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002927/0.5748, allocations: 483.1 kB / 404 MB, free: 11.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/0.5766, allocations: 0.9221 MB / 404.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.703e-05/0.5767, allocations: 37.7 kB / 405 MB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006144/0.5773, allocations: 0.6332 MB / 405.6 MB, free: 9.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.5776, allocations: 236.6 kB / 405.8 MB, free: 9.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.5777, allocations: 20 kB / 405.8 MB, free: 9.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.5779, allocations: 350.8 kB / 406.2 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007612/0.5787, allocations: 250.5 kB / 406.4 MB, free: 8.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.5799, allocations: 0.7169 MB / 407.1 MB, free: 7.953 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009916/0.5809, allocations: 418.3 kB / 407.5 MB, free: 7.531 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.192e-06/0.581, allocations: 4 kB / 407.6 MB, free: 7.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00282/0.5838, allocations: 1.088 MB / 408.6 MB, free: 6.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/0.5839, allocations: 67.39 kB / 408.7 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.5839, allocations: 12 kB / 408.7 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007337/0.5847, allocations: 171.7 kB / 408.9 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000958/0.5856, allocations: 219.6 kB / 409.1 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005696/0.5914, allocations: 3.589 MB / 412.7 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.5926, allocations: 83.98 kB / 412.8 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.5927, allocations: 48 kB / 412.8 MB, free: 1.953 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.0007278/0.5935, allocations: 286 kB / 413.1 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.5937, allocations: 126.5 kB / 413.2 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/0.5958, allocations: 0.7309 MB / 414 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.5958, allocations: 8.047 kB / 414 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.431e-06/0.5959, allocations: 7.938 kB / 414 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001877/0.5977, allocations: 0.953 MB / 414.9 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.6019, allocations: 1.797 MB / 416.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.264e-06/0.602, allocations: 3.938 kB / 416.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.6027, allocations: 116.2 kB / 416.8 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.6033, allocations: 129.6 kB / 417 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.6034, allocations: 24 kB / 417 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004782/0.6082, allocations: 3.306 MB / 420.3 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.135e-06/0.6082, allocations: 7.969 kB / 420.3 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.6111, allocations: 1.187 MB / 421.5 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006079/0.6118, allocations: 243.7 kB / 421.7 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.612, allocations: 16 kB / 421.7 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/0.6127, allocations: 51.92 kB / 421.8 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.6129, allocations: 64.41 kB / 421.9 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.818e-05/0.613, allocations: 16 kB / 421.9 MB, free: 8.305 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00144/0.6144, allocations: 0.6969 MB / 422.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.87e-07/0.6145, allocations: 7.938 kB / 422.6 MB, free: 7.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001581/0.6161, allocations: 360 kB / 422.9 MB, free: 7.242 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.0006255/0.6167, allocations: 363.4 kB / 423.3 MB, free: 6.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002789/0.6195, allocations: 1.105 MB / 424.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.04e-06/0.6195, allocations: 8.062 kB / 424.4 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.6209, allocations: 0.5515 MB / 424.9 MB, free: 5.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.6227, allocations: 296.6 kB / 425.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005833/0.6285, allocations: 2.749 MB / 428 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.6296, allocations: 1.105 MB / 429.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.63, allocations: 87.42 kB / 429.2 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of SimCode: time 1.701e-06/0.63, allocations: 0 / 429.2 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of Templates: time 0.2255/0.8555, allocations: 25.59 MB / 454.8 MB, free: 90.87 MB / 346.7 MB