Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0008478/0.0008476, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001119/0.001119, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.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.0004509/0.000451, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3135, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007523/0.3211, allocations: 6.235 MB / 332.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004839/0.3259, allocations: 2.224 MB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.327, allocations: 20.53 kB / 335 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.3287, allocations: 417.3 kB / 335.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.33, allocations: 313.6 kB / 335.7 MB, free: 10.1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.3305, allocations: 127 kB / 335.8 MB, free: 9.996 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001777/0.3323, allocations: 1.075 MB / 336.9 MB, free: 9.078 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007566/0.3331, allocations: 356.6 kB / 337.2 MB, free: 8.719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007613/0.3339, allocations: 378.3 kB / 337.6 MB, free: 8.348 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005267/0.3344, allocations: 414 kB / 338 MB, free: 7.941 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.3345, allocations: 52 kB / 338 MB, free: 7.891 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.3349, allocations: 91.97 kB / 338.1 MB, free: 7.801 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.335, allocations: 155.2 kB / 338.3 MB, free: 7.648 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.3353, allocations: 221.2 kB / 338.5 MB, free: 7.426 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.3365, allocations: 1.126 MB / 339.6 MB, free: 6.297 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.3366, allocations: 0 / 339.6 MB, free: 6.297 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3366, allocations: 0 / 339.6 MB, free: 6.297 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.3366, allocations: 0 / 339.6 MB, free: 6.297 MB / 270.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.002126/0.3387, allocations: 1.099 MB / 340.7 MB, free: 5.148 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.3388, allocations: 12.03 kB / 340.7 MB, free: 5.137 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005042/0.3393, allocations: 146.6 kB / 340.9 MB, free: 4.992 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009361/0.3402, allocations: 0.6174 MB / 341.5 MB, free: 4.328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/0.3403, allocations: 61.94 kB / 341.6 MB, free: 4.27 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3404, allocations: 79.91 kB / 341.6 MB, free: 4.191 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.3418, allocations: 0.7832 MB / 342.4 MB, free: 3.375 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.3418, allocations: 3.984 kB / 342.4 MB, free: 3.371 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.404e-05/0.3419, allocations: 32 kB / 342.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.3419, allocations: 20 kB / 342.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.3429, allocations: 0.5348 MB / 343 MB, free: 2.789 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00425/0.3472, allocations: 3.403 MB / 346.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.3477, allocations: 234.5 kB / 346.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.3479, allocations: 124.8 kB / 346.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.348, allocations: 3.984 kB / 346.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.348, allocations: 46.5 kB / 346.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.348, allocations: 3.938 kB / 346.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.00211/0.3501, allocations: 1.079 MB / 347.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.3502, allocations: 81.11 kB / 348 MB, free: 13.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009346/0.3512, allocations: 0.7309 MB / 348.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.3512, allocations: 29.7 kB / 348.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.3515, allocations: 498.2 kB / 349.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.3516, allocations: 114.5 kB / 349.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.3517, allocations: 12 kB / 349.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3518, allocations: 386.7 kB / 349.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.3521, allocations: 133.2 kB / 349.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004356/0.3525, allocations: 422.2 kB / 350.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.3529, allocations: 191.9 kB / 350.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3529, allocations: 4 kB / 350.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001003/0.3539, allocations: 0.619 MB / 351.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.354, allocations: 8 kB / 351.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.354, allocations: 15.94 kB / 351.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001619/0.3541, allocations: 32.84 kB / 351.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.3546, allocations: 143.8 kB / 351.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009854/0.3556, allocations: 1.284 MB / 352.6 MB, free: 8.602 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.356, allocations: 48 kB / 352.6 MB, free: 8.555 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.3561, allocations: 28 kB / 352.6 MB, free: 8.527 MB / 286.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.0003539/0.3564, allocations: 229.7 kB / 352.9 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.744e-05/0.3565, allocations: 75.09 kB / 352.9 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006239/0.3572, allocations: 333.9 kB / 353.2 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3572, allocations: 4 kB / 353.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3572, allocations: 3.953 kB / 353.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3572, allocations: 3.984 kB / 353.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.3588, allocations: 1.116 MB / 354.4 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3588, allocations: 4.047 kB / 354.4 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.359, allocations: 67.89 kB / 354.4 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.677e-05/0.3591, allocations: 25.06 kB / 354.5 MB, free: 6.578 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3592, allocations: 12 kB / 354.5 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00085/0.36, allocations: 1.28 MB / 355.8 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.36, allocations: 0 / 355.8 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008183/0.3609, allocations: 0.5717 MB / 356.3 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.3611, allocations: 172.2 kB / 356.5 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/0.3612, allocations: 8 kB / 356.5 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.3615, allocations: 23.97 kB / 356.5 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.302e-05/0.3616, allocations: 35.86 kB / 356.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.3616, allocations: 12 kB / 356.6 MB, free: 4.273 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006459/0.3622, allocations: 0.4912 MB / 357.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3622, allocations: 0 / 357.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006901/0.3629, allocations: 163.9 kB / 357.2 MB, free: 3.625 MB / 286.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.000199/0.3632, allocations: 119.2 kB / 357.3 MB, free: 3.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008529/0.364, allocations: 472.3 kB / 357.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.364, allocations: 0 / 357.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.3644, allocations: 251.1 kB / 358.1 MB, free: 2.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009351/0.3653, allocations: 171.3 kB / 358.2 MB, free: 2.605 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.3679, allocations: 1.746 MB / 360 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.3684, allocations: 0.9414 MB / 360.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.3688, allocations: 90.02 kB / 361 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3689, allocations: 47.44 kB / 361 MB, free: 15.7 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3689, allocations: 0 / 361 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01506/0.3839, allocations: 7.427 MB / 368.5 MB, free: 8.27 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)