Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.962/1.962, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003645, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.0844, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01241/0.09686, allocations: 7.549 MB / 315.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007028/0.1039, allocations: 2.91 MB / 318.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00153/0.1055, allocations: 23.94 kB / 318.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001979/0.1075, allocations: 497.5 kB / 319.3 MB, free: 5.984 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002685/0.1102, allocations: 0.6271 MB / 320 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.1115, allocations: 219.8 kB / 320.2 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.1146, allocations: 1.237 MB / 321.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.1158, allocations: 499.2 kB / 321.9 MB, free: 3.395 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.117, allocations: 0.537 MB / 322.4 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.1182, allocations: 0.6067 MB / 323 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.1186, allocations: 80 kB / 323.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005574/0.1192, allocations: 120 kB / 323.2 MB, free: 2.051 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002754/0.1195, allocations: 235 kB / 323.5 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005089/0.12, allocations: 309 kB / 323.8 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00252/0.1225, allocations: 1.464 MB / 325.2 MB, free: 44 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.541e-06/0.1226, allocations: 0 / 325.2 MB, free: 44 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1226, allocations: 0 / 325.2 MB, free: 44 kB / 266.7 MB Notification: Performance of Transformations before backend: time 5.268e-05/0.1227, allocations: 0 / 325.2 MB, free: 44 kB / 266.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.003763/0.1264, allocations: 1.536 MB / 326.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1265, allocations: 8.031 kB / 326.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007428/0.1272, allocations: 186.1 kB / 327 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.1294, allocations: 0.7775 MB / 327.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002658/0.1297, allocations: 123.8 kB / 327.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/0.1301, allocations: 107.9 kB / 328 MB, free: 13.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00301/0.1332, allocations: 1.139 MB / 329.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-05/0.1333, allocations: 7.953 kB / 329.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.1334, allocations: 48 kB / 329.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/0.1335, allocations: 24 kB / 329.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002404/0.1359, allocations: 0.7652 MB / 329.9 MB, free: 11.11 MB / 282.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.009119/0.145, allocations: 3.898 MB / 333.8 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.1473, allocations: 0.5929 MB / 334.4 MB, free: 6.414 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.26e-05/0.1474, allocations: 8.562 kB / 334.4 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009174/0.1484, allocations: 303.5 kB / 334.7 MB, free: 6.094 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 4.564e-06/0.1484, allocations: 0 / 334.7 MB, free: 6.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.006622/0.155, allocations: 2.113 MB / 336.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003311/0.1554, allocations: 479.2 kB / 337.3 MB, free: 3.309 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/0.1575, allocations: 1.026 MB / 338.4 MB, free: 2.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.1577, allocations: 45.7 kB / 338.4 MB, free: 2.219 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00067/0.1584, allocations: 0.6215 MB / 339 MB, free: 1.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003369/0.1587, allocations: 224.8 kB / 339.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.638e-05/0.1588, allocations: 20 kB / 339.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.159, allocations: 350.8 kB / 339.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008857/0.1599, allocations: 254.5 kB / 339.8 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.1614, allocations: 0.7169 MB / 340.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.1626, allocations: 414.4 kB / 341 MB, free: 15.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/0.1626, allocations: 4 kB / 341 MB, free: 15.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003031/0.1657, allocations: 1.057 MB / 342 MB, free: 14.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.651e-05/0.1658, allocations: 63.41 kB / 342.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.1658, allocations: 12.28 kB / 342.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008153/0.1666, allocations: 173.5 kB / 342.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.1677, allocations: 211.7 kB / 342.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006222/0.1739, allocations: 3.597 MB / 346.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.1753, allocations: 88.05 kB / 346.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.1755, allocations: 48 kB / 346.2 MB, free: 9.852 MB / 298.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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007652/0.1763, allocations: 293.5 kB / 346.5 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.1766, allocations: 126.4 kB / 346.6 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002192/0.1788, allocations: 0.7308 MB / 347.3 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.1788, allocations: 8 kB / 347.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.359e-06/0.1789, allocations: 0 / 347.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002077/0.1809, allocations: 0.9686 MB / 348.3 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.1855, allocations: 1.77 MB / 350.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.014e-06/0.1856, allocations: 0 / 350.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006513/0.1863, allocations: 111.9 kB / 350.2 MB, free: 5.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000651/0.1869, allocations: 133.8 kB / 350.3 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/0.187, allocations: 16 kB / 350.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005255/0.1923, allocations: 3.321 MB / 353.7 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.651e-06/0.1923, allocations: 4.031 kB / 353.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.1952, allocations: 1.065 MB / 354.7 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007339/0.196, allocations: 247.5 kB / 355 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.1962, allocations: 19.98 kB / 355 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008465/0.1971, allocations: 43.97 kB / 355 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.1973, allocations: 64.42 kB / 355.1 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.1974, allocations: 19.98 kB / 355.1 MB, free: 380 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001476/0.1989, allocations: 0.6813 MB / 355.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.2e-07/0.1989, allocations: 0 / 355.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001754/0.2006, allocations: 308 kB / 356.1 MB, free: 15.38 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.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.000342/0.201, allocations: 139.2 kB / 356.2 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.2041, allocations: 1.107 MB / 357.4 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.722e-06/0.2042, allocations: 0.875 kB / 357.4 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2056, allocations: 0.5473 MB / 357.9 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/0.2076, allocations: 301.5 kB / 358.2 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005834/0.2134, allocations: 2.708 MB / 360.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.2146, allocations: 1.101 MB / 362 MB, free: 9.324 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.2149, allocations: 79.44 kB / 362.1 MB, free: 9.246 MB / 314.7 MB Notification: Performance of SimCode: time 1.644e-06/0.215, allocations: 4 kB / 362.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of Templates: time 0.2446/0.4596, allocations: 24.37 MB / 386.5 MB, free: 54.65 MB / 314.7 MB