Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 91.25 kB / 16.31 MB, free: 5.57 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.001206/0.001206, allocations: 179.5 kB / 17.2 MB, free: 5.492 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.798/1.798, allocations: 205.4 MB / 223.4 MB, free: 13.15 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.0004482/0.0004482, allocations: 15.94 kB / 280.2 MB, free: 3.707 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09625, allocations: 47.58 MB / 327.7 MB, free: 4.059 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007304/0.1036, allocations: 7.08 MB / 334.8 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004254/0.1079, allocations: 2.5 MB / 337.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005486/0.1085, allocations: 23.94 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.1096, allocations: 465.4 kB / 337.8 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008374/0.1104, allocations: 389.1 kB / 338.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.1108, allocations: 151.8 kB / 338.3 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.1121, allocations: 1.327 MB / 339.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.1127, allocations: 431.2 kB / 340.1 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005436/0.1133, allocations: 453.9 kB / 340.5 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000653/0.1139, allocations: 0.4938 MB / 341 MB, free: 6.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.114, allocations: 64 kB / 341.1 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002521/0.1143, allocations: 99.97 kB / 341.2 MB, free: 6.551 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.1145, allocations: 203.1 kB / 341.4 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.1147, allocations: 257.1 kB / 341.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.1159, allocations: 1.34 MB / 343 MB, free: 4.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1159, allocations: 4 kB / 343 MB, free: 4.746 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1159, allocations: 0 / 343 MB, free: 4.746 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1159, allocations: 0 / 343 MB, free: 4.746 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002073/0.118, allocations: 1.269 MB / 344.2 MB, free: 3.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.1181, allocations: 12.03 kB / 344.2 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006577/0.1187, allocations: 186.4 kB / 344.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.1199, allocations: 0.7068 MB / 345.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.605e-05/0.1199, allocations: 74 kB / 345.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.1201, allocations: 99.91 kB / 345.3 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.1218, allocations: 0.9307 MB / 346.2 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.1218, allocations: 0 / 346.2 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.257e-05/0.1219, allocations: 44 kB / 346.3 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.1219, allocations: 24 kB / 346.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.1231, allocations: 0.6403 MB / 346.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005098/0.1282, allocations: 3.938 MB / 350.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.1289, allocations: 441.4 kB / 351.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.1295, allocations: 265.3 kB / 351.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.1295, allocations: 4.328 kB / 351.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.1296, allocations: 38.89 kB / 351.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.247e-06/0.1296, allocations: 3.938 kB / 351.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002793/0.1324, allocations: 1.423 MB / 353 MB, free: 10.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/0.1325, allocations: 81.11 kB / 353.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.1336, allocations: 0.8252 MB / 353.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.1337, allocations: 29.7 kB / 354 MB, free: 9.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004378/0.1341, allocations: 0.5642 MB / 354.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.1343, allocations: 153.8 kB / 354.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.1343, allocations: 16 kB / 354.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1345, allocations: 333.9 kB / 355 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.1348, allocations: 165.9 kB / 355.2 MB, free: 8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.1354, allocations: 475.9 kB / 355.7 MB, free: 7.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.1359, allocations: 233.8 kB / 355.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.1359, allocations: 4 kB / 355.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00139/0.1373, allocations: 0.7709 MB / 356.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.1373, allocations: 12 kB / 356.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.1373, allocations: 8 kB / 356.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002782/0.1376, allocations: 89.94 kB / 356.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/0.1381, allocations: 151.7 kB / 356.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/0.1406, allocations: 2.872 MB / 359.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.1411, allocations: 35.98 kB / 359.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/0.1412, allocations: 36.12 kB / 359.9 MB, free: 2.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004697/0.1417, allocations: 253.9 kB / 360.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1418, allocations: 90.97 kB / 360.2 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009292/0.1428, allocations: 0.5034 MB / 360.7 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.1428, allocations: 4 kB / 360.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1428, allocations: 0 / 360.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1428, allocations: 4 kB / 360.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.1451, allocations: 1.446 MB / 362.1 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.1451, allocations: 4 kB / 362.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.1454, allocations: 75.84 kB / 362.2 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001974/0.1456, allocations: 73.83 kB / 362.3 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.1456, allocations: 15.95 kB / 362.3 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.148, allocations: 2.856 MB / 365.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/0.148, allocations: 4.031 kB / 365.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1492, allocations: 0.7768 MB / 365.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.1496, allocations: 203.9 kB / 366.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001608/0.1498, allocations: 8 kB / 366.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004593/0.1503, allocations: 39.97 kB / 366.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.743e-05/0.1504, allocations: 24.11 kB / 366.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.1504, allocations: 23.97 kB / 366.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008806/0.1513, allocations: 0.5498 MB / 366.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1513, allocations: 0 / 366.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001016/0.1523, allocations: 211.9 kB / 367 MB, free: 11.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003392/0.1527, allocations: 131 kB / 367.1 MB, free: 11.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.154, allocations: 0.6867 MB / 367.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.154, allocations: 0 / 367.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007217/0.1547, allocations: 450 kB / 368.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.156, allocations: 207.2 kB / 368.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.1597, allocations: 2.095 MB / 370.5 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008028/0.1605, allocations: 1.005 MB / 371.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004815/0.161, allocations: 103.2 kB / 371.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.1612, allocations: 63.42 kB / 371.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1612, allocations: 0 / 371.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of Templates: time 0.1822/0.3434, allocations: 9.64 MB / 381.4 MB, free: 48.57 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)