Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003497, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07957/0.07995, allocations: 38.76 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0165/0.09651, allocations: 9.68 MB / 282.3 MB, free: 1.805 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008167/0.1047, allocations: 3.21 MB / 285.5 MB, free: 14.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001842/0.1066, allocations: 39.88 kB / 285.6 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002886/0.1096, allocations: 0.5284 MB / 286.1 MB, free: 14.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003415/0.113, allocations: 0.7634 MB / 286.9 MB, free: 13.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.1144, allocations: 243.7 kB / 287.1 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004724/0.1192, allocations: 1.705 MB / 288.8 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.1208, allocations: 0.6949 MB / 289.5 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.1224, allocations: 0.6886 MB / 290.2 MB, free: 9.895 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.124, allocations: 0.7583 MB / 290.9 MB, free: 9.133 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000416/0.1244, allocations: 104 kB / 291 MB, free: 9.031 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007492/0.1252, allocations: 136 kB / 291.2 MB, free: 8.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003513/0.1256, allocations: 294.7 kB / 291.5 MB, free: 8.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005988/0.1262, allocations: 404.7 kB / 291.9 MB, free: 8.207 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00344/0.1296, allocations: 2.138 MB / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1297, allocations: 0 / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.1297, allocations: 0 / 294 MB, free: 6.062 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.754e-05/0.1298, allocations: 0 / 294 MB, free: 6.062 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005415/0.1352, allocations: 1.836 MB / 295.8 MB, free: 4.168 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.1353, allocations: 8.031 kB / 295.8 MB, free: 4.16 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.1364, allocations: 253.4 kB / 296.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.1395, allocations: 1.079 MB / 297.2 MB, free: 2.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.1397, allocations: 115 kB / 297.3 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003698/0.1401, allocations: 159.9 kB / 297.4 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004176/0.1443, allocations: 1.461 MB / 298.9 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.446e-05/0.1444, allocations: 7.906 kB / 298.9 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000209/0.1446, allocations: 68 kB / 299 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.54e-05/0.1447, allocations: 36 kB / 299 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2738/0.4185, allocations: 1.005 MB / 300 MB, free: 29.65 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/0.4367, allocations: 6.159 MB / 306.2 MB, free: 26.14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/0.4392, allocations: 0.5606 MB / 306.7 MB, free: 25.9 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-05/0.4393, allocations: 12.91 kB / 306.7 MB, free: 25.9 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.4394, allocations: 39.84 kB / 306.8 MB, free: 25.86 MB / 250.7 MB Notification: Performance of pre-optimization done (n=66): time 4.94e-06/0.4394, allocations: 0 / 306.8 MB, free: 25.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.009314/0.4487, allocations: 2.266 MB / 309 MB, free: 24.53 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.4488, allocations: 115 kB / 309.2 MB, free: 24.4 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003298/0.4521, allocations: 1.183 MB / 310.3 MB, free: 23.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4523, allocations: 36.98 kB / 310.4 MB, free: 23.87 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009413/0.4532, allocations: 0.8524 MB / 311.2 MB, free: 23.2 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003184/0.4536, allocations: 263 kB / 311.5 MB, free: 23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.4537, allocations: 21.44 kB / 311.5 MB, free: 22.99 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4538, allocations: 350.5 kB / 311.9 MB, free: 22.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.4551, allocations: 268.7 kB / 312.1 MB, free: 22.57 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.4567, allocations: 0.7187 MB / 312.8 MB, free: 21.81 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.4582, allocations: 389.5 kB / 313.2 MB, free: 21.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.4583, allocations: 8.469 kB / 313.2 MB, free: 21.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.004885/0.4632, allocations: 1.205 MB / 314.4 MB, free: 20.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/0.4633, allocations: 12.38 kB / 314.4 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.425e-05/0.4633, allocations: 15.62 kB / 314.5 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007824/0.4641, allocations: 115.3 kB / 314.6 MB, free: 20.92 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002175/0.4663, allocations: 260.8 kB / 314.8 MB, free: 20.86 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0066/0.4729, allocations: 4.201 MB / 319 MB, free: 16.6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.4758, allocations: 60.42 kB / 319.1 MB, free: 16.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/0.476, allocations: 53.47 kB / 319.1 MB, free: 16.56 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001221/0.4772, allocations: 358.1 kB / 319.5 MB, free: 16.29 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/0.4777, allocations: 137.8 kB / 319.6 MB, free: 16.21 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003556/0.4813, allocations: 0.7843 MB / 320.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.4814, allocations: 3.984 kB / 320.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/0.4814, allocations: 1.125 kB / 320.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4824, allocations: 254.1 kB / 320.7 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000491/0.483, allocations: 15.88 kB / 320.7 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.4845, allocations: 36.83 kB / 320.7 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.4847, allocations: 52.16 kB / 320.8 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004441/0.4892, allocations: 0.8133 MB / 321.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003784/0.493, allocations: 1.102 MB / 322.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001024/0.4941, allocations: 251.3 kB / 322.9 MB, free: 14.2 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002141/0.4963, allocations: 0.7835 MB / 323.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of Backend: time 1.032e-06/0.4963, allocations: 0 / 323.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00295/0.4992, allocations: 0.9767 MB / 324.7 MB, free: 13.08 MB / 250.7 MB Notification: Performance of SimCode: time 0.00785/0.5071, allocations: 3.987 MB / 328.7 MB, free: 10.21 MB / 250.7 MB Notification: Performance of Templates: time 0.0449/0.5521, allocations: 15.21 MB / 343.9 MB, free: 11.09 MB / 266.7 MB