Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 11.98 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09697, allocations: 44.5 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.534, allocations: 94.48 MB / 403.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.5344, allocations: 91.58 kB / 403.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1229/0.6572, allocations: 30.29 MB / 433.8 MB, free: 2.445 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6573, allocations: 4 kB / 433.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.532e-05/0.6574, allocations: 31.3 kB / 433.9 MB, free: 2.414 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.004149/0.6616, allocations: 1.534 MB / 435.4 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.6616, allocations: 8.031 kB / 435.4 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009513/0.6626, allocations: 206.4 kB / 435.6 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.665, allocations: 0.838 MB / 436.5 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.6653, allocations: 119.6 kB / 436.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002941/0.6656, allocations: 106.8 kB / 436.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003512/0.6691, allocations: 1.141 MB / 437.8 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.415e-05/0.6693, allocations: 7.906 kB / 437.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.6694, allocations: 46.12 kB / 437.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/0.6695, allocations: 31.95 kB / 437.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.6722, allocations: 0.776 MB / 438.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.6825, allocations: 3.917 MB / 442.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.6852, allocations: 0.6057 MB / 443.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.862e-05/0.6853, allocations: 12.52 kB / 443.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009844/0.6863, allocations: 316.6 kB / 443.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.128e-06/0.6863, allocations: 0 / 443.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.008537/0.6949, allocations: 2.104 MB / 445.6 MB, free: 8.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002621/0.6952, allocations: 482.8 kB / 446.1 MB, free: 8.195 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.6974, allocations: 1.044 MB / 447.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.6976, allocations: 41.27 kB / 447.2 MB, free: 7.379 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006067/0.6982, allocations: 0.6288 MB / 447.8 MB, free: 6.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.6986, allocations: 233.7 kB / 448 MB, free: 6.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.326e-05/0.6987, allocations: 20.06 kB / 448.1 MB, free: 6.742 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.6988, allocations: 351.7 kB / 448.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009717/0.6998, allocations: 261.1 kB / 448.7 MB, free: 6.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.7012, allocations: 0.7142 MB / 449.4 MB, free: 5.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.7025, allocations: 410.8 kB / 449.8 MB, free: 5.141 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.7025, allocations: 4 kB / 449.8 MB, free: 5.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003676/0.7062, allocations: 1.091 MB / 450.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.997e-05/0.7063, allocations: 59.41 kB / 450.9 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/0.7064, allocations: 15.98 kB / 450.9 MB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009383/0.7074, allocations: 174.4 kB / 451.1 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.7089, allocations: 215.6 kB / 451.3 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006405/0.7153, allocations: 3.604 MB / 454.9 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.717, allocations: 76.06 kB / 455 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.7173, allocations: 52 kB / 455 MB, free: 15.79 MB / 346.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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009548/0.7183, allocations: 293.4 kB / 455.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.7187, allocations: 134.4 kB / 455.5 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.7214, allocations: 0.7309 MB / 456.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.7215, allocations: 11.98 kB / 456.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.7215, allocations: 0 / 456.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002202/0.7237, allocations: 0.953 MB / 457.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005292/0.729, allocations: 1.799 MB / 459 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.7291, allocations: 3.984 kB / 459 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.7301, allocations: 116.1 kB / 459.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008099/0.7309, allocations: 133.6 kB / 459.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.7311, allocations: 16 kB / 459.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00514/0.7362, allocations: 3.31 MB / 462.5 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.7363, allocations: 0 / 462.5 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003629/0.7399, allocations: 1.096 MB / 463.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008597/0.7408, allocations: 243.6 kB / 463.9 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004329/0.7413, allocations: 20 kB / 463.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.7425, allocations: 55.84 kB / 463.9 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.7428, allocations: 60.42 kB / 464 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-05/0.7429, allocations: 20 kB / 464 MB, free: 6.258 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001778/0.7447, allocations: 0.6969 MB / 464.7 MB, free: 5.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.7447, allocations: 0 / 464.7 MB, free: 5.555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002081/0.7468, allocations: 356.1 kB / 465.1 MB, free: 5.207 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.0007436/0.7476, allocations: 344.5 kB / 465.4 MB, free: 4.895 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003404/0.751, allocations: 1.127 MB / 466.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.751, allocations: 0 / 466.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.7526, allocations: 0.5596 MB / 467.1 MB, free: 3.141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.7553, allocations: 312.5 kB / 467.4 MB, free: 2.836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.7623, allocations: 2.74 MB / 470.1 MB, free: 40 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009235/0.7632, allocations: 1.105 MB / 471.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000452/0.7637, allocations: 87.42 kB / 471.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7637, allocations: 0 / 471.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of Templates: time 0.05338/0.8171, allocations: 25.66 MB / 497 MB, free: 5.152 MB / 378.7 MB