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.604/1.604, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006031/0.0006034, allocations: 16 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1123, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01079/0.1232, allocations: 7.541 MB / 279.5 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006076/0.1293, allocations: 2.905 MB / 282.4 MB, free: 1.703 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009584/0.1303, allocations: 23.94 kB / 282.4 MB, free: 1.68 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1318, allocations: 0.4975 MB / 282.9 MB, free: 1.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.1338, allocations: 0.6116 MB / 283.5 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008012/0.1346, allocations: 227.6 kB / 283.7 MB, free: 352 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.1369, allocations: 1.226 MB / 285 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009505/0.1378, allocations: 0.4953 MB / 285.5 MB, free: 14.61 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007852/0.1386, allocations: 0.5371 MB / 286 MB, free: 14.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008788/0.1395, allocations: 0.6028 MB / 286.6 MB, free: 13.47 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001918/0.1397, allocations: 84 kB / 286.7 MB, free: 13.39 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000408/0.1402, allocations: 123.9 kB / 286.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.1404, allocations: 231.1 kB / 287 MB, free: 13.04 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003686/0.1408, allocations: 309 kB / 287.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00191/0.1427, allocations: 1.461 MB / 288.8 MB, free: 11.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1428, allocations: 0 / 288.8 MB, free: 11.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.399e-06/0.1428, allocations: 0 / 288.8 MB, free: 11.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.1428, allocations: 0 / 288.8 MB, free: 11.27 MB / 250.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.003135/0.1459, allocations: 1.533 MB / 290.3 MB, free: 9.664 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.146, allocations: 12.03 kB / 290.3 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005738/0.1466, allocations: 186.1 kB / 290.5 MB, free: 9.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.1484, allocations: 0.7697 MB / 291.3 MB, free: 8.652 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.1486, allocations: 123.8 kB / 291.4 MB, free: 8.523 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.1488, allocations: 108 kB / 291.5 MB, free: 8.418 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002615/0.1515, allocations: 1.135 MB / 292.6 MB, free: 7.191 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.903e-05/0.1515, allocations: 15.84 kB / 292.7 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.1517, allocations: 44 kB / 292.7 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.05e-05/0.1517, allocations: 28 kB / 292.7 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002329/0.154, allocations: 0.769 MB / 293.5 MB, free: 6.336 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007872/0.1619, allocations: 3.883 MB / 297.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.164, allocations: 0.601 MB / 298 MB, free: 1.637 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.1641, allocations: 8.562 kB / 298 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008321/0.1649, allocations: 303.1 kB / 298.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=62): time 4.09e-06/0.1649, allocations: 0 / 298.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=65): time 0.1757/0.3407, allocations: 2.097 MB / 300.4 MB, free: 30.33 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.943e-05/0.3408, allocations: 477.8 kB / 300.8 MB, free: 29.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/0.3426, allocations: 1.036 MB / 301.9 MB, free: 29.62 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.499e-05/0.3427, allocations: 39.39 kB / 301.9 MB, free: 29.59 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004144/0.3432, allocations: 0.6227 MB / 302.5 MB, free: 29.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3434, allocations: 230.8 kB / 302.8 MB, free: 28.9 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/0.3434, allocations: 21.06 kB / 302.8 MB, free: 28.88 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.3435, allocations: 355.7 kB / 303.1 MB, free: 28.55 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.3443, allocations: 247.3 kB / 303.4 MB, free: 28.47 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009866/0.3453, allocations: 0.7203 MB / 304.1 MB, free: 27.81 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009707/0.3463, allocations: 407.1 kB / 304.5 MB, free: 27.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.3463, allocations: 3.438 kB / 304.5 MB, free: 27.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002446/0.3487, allocations: 1.056 MB / 305.6 MB, free: 27.12 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.3488, allocations: 68.97 kB / 305.6 MB, free: 27.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.3489, allocations: 11.75 kB / 305.6 MB, free: 27.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007471/0.3496, allocations: 170.1 kB / 305.8 MB, free: 27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008977/0.3505, allocations: 206.2 kB / 306 MB, free: 26.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004601/0.3552, allocations: 3.608 MB / 309.6 MB, free: 23.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.3564, allocations: 77.47 kB / 309.7 MB, free: 23.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-05/0.3566, allocations: 47.44 kB / 309.7 MB, free: 23.82 MB / 250.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 (112): * Single equations (assignments): 108 * 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.0005979/0.3572, allocations: 299.4 kB / 310 MB, free: 23.59 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.3574, allocations: 123.8 kB / 310.1 MB, free: 23.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.3593, allocations: 0.7193 MB / 310.9 MB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3593, allocations: 7.125 kB / 310.9 MB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.041e-06/0.3594, allocations: 0 / 310.9 MB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001682/0.361, allocations: 0.9709 MB / 311.8 MB, free: 22.47 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.365, allocations: 1.772 MB / 313.6 MB, free: 21.56 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.58e-06/0.365, allocations: 2.078 kB / 313.6 MB, free: 21.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006744/0.3657, allocations: 112.7 kB / 313.7 MB, free: 21.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005876/0.3663, allocations: 136.1 kB / 313.9 MB, free: 21.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-05/0.3664, allocations: 18.02 kB / 313.9 MB, free: 21.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003727/0.3702, allocations: 3.316 MB / 317.2 MB, free: 18.48 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.3702, allocations: 2.781 kB / 317.2 MB, free: 18.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.3727, allocations: 1.069 MB / 318.3 MB, free: 17.93 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005197/0.3733, allocations: 250 kB / 318.5 MB, free: 17.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.3735, allocations: 23.53 kB / 318.5 MB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008023/0.3743, allocations: 41.44 kB / 318.6 MB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.3745, allocations: 56.08 kB / 318.6 MB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/0.3746, allocations: 21.78 kB / 318.7 MB, free: 17.69 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001193/0.3758, allocations: 0.6897 MB / 319.3 MB, free: 17.39 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.3758, allocations: 0 / 319.3 MB, free: 17.39 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00149/0.3773, allocations: 301.2 kB / 319.6 MB, free: 17.36 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,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 (52): * Single equations (assignments): 48 * 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.0002486/0.3776, allocations: 144 kB / 319.8 MB, free: 17.24 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.3799, allocations: 1.097 MB / 320.9 MB, free: 16.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.718e-06/0.3799, allocations: 0 / 320.9 MB, free: 16.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.3811, allocations: 0.558 MB / 321.4 MB, free: 16.29 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.3827, allocations: 287 kB / 321.7 MB, free: 16.19 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.3875, allocations: 2.731 MB / 324.4 MB, free: 14.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006034/0.3881, allocations: 1.104 MB / 325.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.3884, allocations: 80.72 kB / 325.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of SimCode: time 1.618e-06/0.3884, allocations: 0 / 325.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of Templates: time 0.03371/0.4222, allocations: 24.33 MB / 350 MB, free: 5.508 MB / 266.7 MB