Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008221/0.008221, allocations: 104 kB / 15.74 MB, free: 6.059 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.001287/0.001287, allocations: 198.8 kB / 16.68 MB, free: 5.969 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.832/1.832, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001391/0.001391, allocations: 55.92 kB / 326.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1206, allocations: 46.61 MB / 373.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.3366/0.4572, allocations: 15.19 MB / 388.4 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.4733, allocations: 5.67 MB / 394 MB, free: 296 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005953/0.4793, allocations: 75.53 kB / 394.1 MB, free: 272 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004687/0.484, allocations: 1.01 MB / 395.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004913/0.489, allocations: 0.6694 MB / 395.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003041/0.492, allocations: 0.7441 MB / 396.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006746/0.4988, allocations: 2.741 MB / 399.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003088/0.5019, allocations: 1.284 MB / 400.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003419/0.5054, allocations: 1.073 MB / 401.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002065/0.5075, allocations: 1.072 MB / 402.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004652/0.5079, allocations: 262.4 kB / 403 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000498/0.5084, allocations: 261.5 kB / 403.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005864/0.509, allocations: 0.5284 MB / 403.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001418/0.5105, allocations: 1.156 MB / 404.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004899/0.5154, allocations: 3.167 MB / 408.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.5154, allocations: 0 / 408.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5154, allocations: 0 / 408.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.973e-05/0.5155, allocations: 0 / 408.1 MB, free: 8.27 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.005881/0.5214, allocations: 2.467 MB / 410.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.279e-05/0.5214, allocations: 15.98 kB / 410.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/0.522, allocations: 257.2 kB / 410.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/0.5247, allocations: 1.252 MB / 412.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003655/0.5251, allocations: 263 kB / 412.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000357/0.5255, allocations: 191.8 kB / 412.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004395/0.5299, allocations: 1.915 MB / 414.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.475e-05/0.5299, allocations: 7.188 kB / 414.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/0.5301, allocations: 76.88 kB / 414.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.246e-05/0.5302, allocations: 50.16 kB / 414.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003934/0.5341, allocations: 1.576 MB / 416.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01496/0.5491, allocations: 7.16 MB / 423.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002957/0.5521, allocations: 1.218 MB / 424.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.5533, allocations: 456.3 kB / 424.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.47e-05/0.5535, allocations: 12.98 kB / 425 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.5535, allocations: 47.5 kB / 425 MB, free: 11.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 3.878e-06/0.5535, allocations: 0 / 425 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.03426/0.5878, allocations: 7.869 MB / 432.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.5879, allocations: 68.34 kB / 432.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003321/0.5913, allocations: 1.244 MB / 434.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.5914, allocations: 41.7 kB / 434.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.5925, allocations: 0.9861 MB / 435.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004848/0.593, allocations: 390.4 kB / 435.6 MB, free: 392 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006434/0.5936, allocations: 275.3 kB / 435.9 MB, free: 112 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.5938, allocations: 305.1 kB / 436.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/0.5962, allocations: 0.727 MB / 436.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002622/0.5988, allocations: 1.195 MB / 438.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004434/0.6032, allocations: 1.797 MB / 439.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-05/0.6033, allocations: 8 kB / 439.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.006221/0.6095, allocations: 2.149 MB / 442 MB, free: 9.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.385e-05/0.6096, allocations: 12 kB / 442 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.792e-05/0.6097, allocations: 16 kB / 442.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002585/0.6099, allocations: 44.84 kB / 442.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.612, allocations: 411.9 kB / 442.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.614, allocations: 1.375 MB / 443.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/0.6164, allocations: 139.9 kB / 444 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/0.6167, allocations: 67.98 kB / 444.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00274/0.6194, allocations: 0.9802 MB / 445.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002214/0.6217, allocations: 1.154 MB / 446.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003674/0.6254, allocations: 1.736 MB / 448 MB, free: 3.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.895e-05/0.6254, allocations: 4 kB / 448 MB, free: 3.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.005197/0.6306, allocations: 2.067 MB / 450 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.6306, allocations: 12 kB / 450 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/0.6307, allocations: 16.5 kB / 450.1 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.6308, allocations: 40.84 kB / 450.1 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.6326, allocations: 395.4 kB / 450.5 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.6339, allocations: 1.382 MB / 451.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.6358, allocations: 127.9 kB / 452 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.636, allocations: 64 kB / 452.1 MB, free: 14.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006035/0.6366, allocations: 283.6 kB / 452.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005441/0.6371, allocations: 158 kB / 452.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.6415, allocations: 1.581 MB / 454.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.6416, allocations: 12 kB / 454.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.6416, allocations: 4 kB / 454.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.6416, allocations: 15.91 kB / 454.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009422/0.651, allocations: 3.75 MB / 457.8 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-05/0.6511, allocations: 16.25 kB / 457.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.6523, allocations: 251.6 kB / 458.1 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.6525, allocations: 28.84 kB / 458.1 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.6526, allocations: 32 kB / 458.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.6539, allocations: 1.382 MB / 459.5 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-05/0.6539, allocations: 15.94 kB / 459.6 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004939/0.6588, allocations: 2.219 MB / 461.8 MB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.6599, allocations: 303 kB / 462.1 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005608/0.6605, allocations: 39.98 kB / 462.1 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.6621, allocations: 103.9 kB / 462.2 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003635/0.6624, allocations: 128.2 kB / 462.3 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.6626, allocations: 40 kB / 462.4 MB, free: 3.812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002486/0.6651, allocations: 0.8103 MB / 463.2 MB, free: 3.004 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.6651, allocations: 4 kB / 463.2 MB, free: 3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004498/0.6696, allocations: 0.6094 MB / 463.8 MB, free: 2.391 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003412/0.67, allocations: 158.8 kB / 464 MB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007445/0.6774, allocations: 2.818 MB / 466.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/0.6774, allocations: 4 kB / 466.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.6792, allocations: 0.711 MB / 467.5 MB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/0.682, allocations: 370.7 kB / 467.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008814/0.6909, allocations: 3.534 MB / 471.4 MB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.6927, allocations: 1.345 MB / 472.7 MB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001703/0.6945, allocations: 296.4 kB / 473 MB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004769/0.695, allocations: 103.4 kB / 473.1 MB, free: 8.852 MB / 398.1 MB Notification: Performance of SimCode: time 5.36e-06/0.695, allocations: 112 / 473.1 MB, free: 8.852 MB / 398.1 MB Notification: Performance of Templates: time 0.04082/0.7358, allocations: 18.35 MB / 491.5 MB, free: 6.473 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)