Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008255/0.0008255, allocations: 87.38 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009879/0.0009879, allocations: 182.2 kB / 17.21 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004588/0.000459, allocations: 15.28 kB / 280.2 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1054, allocations: 47.58 MB / 327.7 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006678/0.1121, allocations: 6.238 MB / 334 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004141/0.1163, allocations: 2.226 MB / 336.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005001/0.1168, allocations: 19.94 kB / 336.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1179, allocations: 409.7 kB / 336.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007651/0.1187, allocations: 317.7 kB / 336.9 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.119, allocations: 131.8 kB / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1201, allocations: 1.078 MB / 338.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005583/0.1206, allocations: 352.6 kB / 338.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004355/0.1211, allocations: 374.3 kB / 338.8 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000435/0.1215, allocations: 414 kB / 339.2 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.109e-05/0.1216, allocations: 56 kB / 339.3 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.1219, allocations: 95.97 kB / 339.4 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.122, allocations: 151.3 kB / 339.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.1222, allocations: 221.2 kB / 339.8 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009952/0.1232, allocations: 1.118 MB / 340.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1232, allocations: 3.938 kB / 340.9 MB, free: 6.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1232, allocations: 0 / 340.9 MB, free: 6.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1232, allocations: 0 / 340.9 MB, free: 6.844 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001627/0.1248, allocations: 1.102 MB / 342 MB, free: 5.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1249, allocations: 8.031 kB / 342 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004577/0.1254, allocations: 146.6 kB / 342.1 MB, free: 5.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.1262, allocations: 0.6173 MB / 342.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.1263, allocations: 65.94 kB / 342.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1264, allocations: 84 kB / 342.9 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.1278, allocations: 0.7793 MB / 343.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.1278, allocations: 4 kB / 343.7 MB, free: 3.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.398e-05/0.1279, allocations: 32 kB / 343.7 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.1279, allocations: 20 kB / 343.7 MB, free: 3.863 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009627/0.1289, allocations: 0.5309 MB / 344.3 MB, free: 3.336 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003961/0.1328, allocations: 3.407 MB / 347.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.1333, allocations: 234.5 kB / 347.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.1336, allocations: 124.8 kB / 348 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.1336, allocations: 11.92 kB / 348 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1337, allocations: 34.56 kB / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.873e-06/0.1337, allocations: 0 / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002234/0.1359, allocations: 1.082 MB / 349.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.383e-05/0.136, allocations: 85.11 kB / 349.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009432/0.137, allocations: 0.7231 MB / 350 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.137, allocations: 33.7 kB / 350 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003444/0.1374, allocations: 0.4904 MB / 350.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.055e-05/0.1374, allocations: 106.5 kB / 350.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.1375, allocations: 12 kB / 350.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1376, allocations: 378.7 kB / 351 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.1379, allocations: 141.2 kB / 351.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004299/0.1383, allocations: 418.2 kB / 351.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1387, allocations: 195.9 kB / 351.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1387, allocations: 4 kB / 351.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009481/0.1397, allocations: 0.6146 MB / 352.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1397, allocations: 8.531 kB / 352.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1397, allocations: 11.94 kB / 352.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.1399, allocations: 40.84 kB / 352.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003991/0.1403, allocations: 143.8 kB / 352.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009518/0.1412, allocations: 1.295 MB / 353.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.1416, allocations: 43.94 kB / 353.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.1417, allocations: 28 kB / 353.9 MB, free: 9.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003117/0.142, allocations: 233.8 kB / 354.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-05/0.1421, allocations: 71.06 kB / 354.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006228/0.1427, allocations: 341.9 kB / 354.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1427, allocations: 0 / 354.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1428, allocations: 7.953 kB / 354.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1428, allocations: 3.984 kB / 354.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.1443, allocations: 1.113 MB / 355.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1443, allocations: 0 / 355.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.1446, allocations: 63.91 kB / 355.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.956e-05/0.1447, allocations: 24.84 kB / 355.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.1447, allocations: 8 kB / 355.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008458/0.1456, allocations: 1.272 MB / 357 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1456, allocations: 0 / 357 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.1464, allocations: 0.5717 MB / 357.6 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.1466, allocations: 176.3 kB / 357.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.012e-05/0.1467, allocations: 15.98 kB / 357.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.147, allocations: 27.97 kB / 357.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.1471, allocations: 27.88 kB / 357.8 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.1471, allocations: 11.98 kB / 357.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006068/0.1477, allocations: 0.5029 MB / 358.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1477, allocations: 0 / 358.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006059/0.1483, allocations: 156 kB / 358.5 MB, free: 4.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001999/0.1486, allocations: 115.2 kB / 358.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008197/0.1494, allocations: 474.9 kB / 359.1 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.1494, allocations: 5.875 kB / 359.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.1497, allocations: 242.9 kB / 359.3 MB, free: 3.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008954/0.1506, allocations: 170.9 kB / 359.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.1529, allocations: 1.746 MB / 361.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.1534, allocations: 0.9375 MB / 362.2 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003082/0.1537, allocations: 90.02 kB / 362.2 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.1538, allocations: 47.44 kB / 362.3 MB, free: 260 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1538, allocations: 0 / 362.3 MB, free: 260 kB / 302.1 MB Notification: Performance of Templates: time 0.01334/0.1671, allocations: 7.435 MB / 369.7 MB, free: 8.824 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)