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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.601/1.601, allocations: 171.3 MB / 179.2 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.719e-05/1.734e-05, allocations: 4 kB / 222.5 MB, free: 4.746 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2084, allocations: 38.77 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.3856, allocations: 88.57 MB / 349.9 MB, free: 4.93 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.386, allocations: 83.95 kB / 349.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2975/0.6835, allocations: 29.93 MB / 379.9 MB, free: 84.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.888e-06/0.6835, allocations: 0.6562 kB / 379.9 MB, free: 84.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.272e-05/0.6836, allocations: 27.16 kB / 379.9 MB, free: 84.21 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.002597/0.6862, allocations: 1.356 MB / 381.2 MB, free: 83.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.6863, allocations: 7.75 kB / 381.3 MB, free: 83.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006505/0.687, allocations: 197.5 kB / 381.4 MB, free: 83.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.6887, allocations: 0.8387 MB / 382.3 MB, free: 83.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.6889, allocations: 81.75 kB / 382.4 MB, free: 82.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.6891, allocations: 71.89 kB / 382.4 MB, free: 82.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001586/0.6907, allocations: 0.6284 MB / 383.1 MB, free: 82.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.6926, allocations: 0.9252 MB / 384 MB, free: 82.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/0.6926, allocations: 5.875 kB / 384 MB, free: 82.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.6928, allocations: 11.61 kB / 384 MB, free: 82.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.6928, allocations: 27.61 kB / 384 MB, free: 82.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006462/0.6993, allocations: 3.703 MB / 387.7 MB, free: 80.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.7009, allocations: 0.5164 MB / 388.3 MB, free: 80.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.7014, allocations: 223.3 kB / 388.5 MB, free: 80.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.7015, allocations: 11.94 kB / 388.5 MB, free: 80.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005202/0.702, allocations: 260.7 kB / 388.7 MB, free: 80.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.621e-06/0.7021, allocations: 4 kB / 388.7 MB, free: 80.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003596/0.7057, allocations: 1.388 MB / 390.1 MB, free: 79.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.7058, allocations: 478.6 kB / 390.6 MB, free: 79.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.7071, allocations: 0.7328 MB / 391.3 MB, free: 78.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.7072, allocations: 25.7 kB / 391.4 MB, free: 78.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003959/0.7076, allocations: 0.6524 MB / 392 MB, free: 78.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.7078, allocations: 222.8 kB / 392.2 MB, free: 77.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.7079, allocations: 0 / 392.2 MB, free: 77.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.708, allocations: 354.4 kB / 392.6 MB, free: 77.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.7085, allocations: 194.9 kB / 392.8 MB, free: 77.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007295/0.7092, allocations: 0.6506 MB / 393.4 MB, free: 76.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000618/0.7099, allocations: 299.5 kB / 393.7 MB, free: 76.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-06/0.7099, allocations: 2.844 kB / 393.7 MB, free: 76.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002196/0.7121, allocations: 0.8811 MB / 394.6 MB, free: 76.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/0.7122, allocations: 62.73 kB / 394.6 MB, free: 76.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.7122, allocations: 14.47 kB / 394.7 MB, free: 76.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008612/0.7131, allocations: 182.4 kB / 394.8 MB, free: 76.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000829/0.7139, allocations: 220.1 kB / 395.1 MB, free: 76.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.7184, allocations: 3.401 MB / 398.5 MB, free: 73.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.7197, allocations: 58.34 kB / 398.5 MB, free: 73.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.7198, allocations: 49.92 kB / 398.6 MB, free: 73.29 MB / 314.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 () * 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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.7201, allocations: 147.8 kB / 398.7 MB, free: 73.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.7203, allocations: 103 kB / 398.8 MB, free: 73.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.722, allocations: 0.6244 MB / 399.4 MB, free: 72.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.451e-06/0.722, allocations: 7.469 kB / 399.4 MB, free: 72.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.206e-06/0.722, allocations: 3.812 kB / 399.4 MB, free: 72.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001328/0.7234, allocations: 0.8803 MB / 400.3 MB, free: 72.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0033/0.7267, allocations: 1.587 MB / 401.9 MB, free: 71.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.7267, allocations: 7.953 kB / 401.9 MB, free: 71.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006927/0.7274, allocations: 110.8 kB / 402 MB, free: 71.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006194/0.7281, allocations: 130.2 kB / 402.2 MB, free: 70.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.087e-05/0.7281, allocations: 7.516 kB / 402.2 MB, free: 70.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.7315, allocations: 3.14 MB / 405.3 MB, free: 67.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-06/0.7315, allocations: 8.25 kB / 405.3 MB, free: 67.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.7336, allocations: 1.031 MB / 406.3 MB, free: 66.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/0.7341, allocations: 248.3 kB / 406.6 MB, free: 66.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.7343, allocations: 5.812 kB / 406.6 MB, free: 66.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000758/0.7351, allocations: 33.84 kB / 406.6 MB, free: 66.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.7353, allocations: 57.52 kB / 406.7 MB, free: 66.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.7353, allocations: 20 kB / 406.7 MB, free: 66.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008786/0.7362, allocations: 0.5314 MB / 407.2 MB, free: 65.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.57e-07/0.7362, allocations: 0 / 407.2 MB, free: 65.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001421/0.7377, allocations: 287.4 kB / 407.5 MB, free: 65.52 MB / 314.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) * 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.0004504/0.7381, allocations: 319.8 kB / 407.8 MB, free: 65.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.7402, allocations: 0.9613 MB / 408.8 MB, free: 64.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.135e-06/0.7402, allocations: 0 / 408.8 MB, free: 64.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.7411, allocations: 0.4884 MB / 409.3 MB, free: 63.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.7426, allocations: 241.6 kB / 409.5 MB, free: 63.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.7461, allocations: 1.621 MB / 411.1 MB, free: 62.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006122/0.7467, allocations: 1.099 MB / 412.2 MB, free: 61.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.747, allocations: 78.62 kB / 412.3 MB, free: 61.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.816e-06/0.747, allocations: 4 kB / 412.3 MB, free: 61.04 MB / 314.7 MB Notification: Performance of Templates: time 0.03114/0.7782, allocations: 24.47 MB / 436.8 MB, free: 37.56 MB / 314.7 MB