Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.002006/0.002006, allocations: 98.39 kB / 16.5 MB, free: 6.641 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.002187/0.002187, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.868/1.868, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.00136/0.00136, allocations: 51.94 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1475, allocations: 46.63 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01866/0.1663, allocations: 15 MB / 341 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.1797, allocations: 5.548 MB / 346.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004968/0.1848, allocations: 67.69 kB / 346.6 MB, free: 172 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004511/0.1893, allocations: 0.8468 MB / 347.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00357/0.1929, allocations: 0.5158 MB / 347.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.195, allocations: 0.6479 MB / 348.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004701/0.1997, allocations: 2.577 MB / 351.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.2017, allocations: 1.164 MB / 352.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.2038, allocations: 0.9254 MB / 353.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.2051, allocations: 1.003 MB / 354.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002758/0.2054, allocations: 148 kB / 354.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.2058, allocations: 148 kB / 354.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004697/0.2062, allocations: 426.2 kB / 355 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.2075, allocations: 1.053 MB / 356 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.2107, allocations: 3.005 MB / 359 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.2107, allocations: 0 / 359 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2108, allocations: 4 kB / 359 MB, free: 3.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.87e-05/0.2108, allocations: 0 / 359 MB, free: 3.629 MB / 302.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.005527/0.2164, allocations: 2.454 MB / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/0.2165, allocations: 15.97 kB / 361.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004313/0.2169, allocations: 250 kB / 361.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.2191, allocations: 1.222 MB / 363 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.2194, allocations: 261.3 kB / 363.2 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/0.2197, allocations: 200 kB / 363.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003658/0.2233, allocations: 1.911 MB / 365.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-05/0.2234, allocations: 11.84 kB / 365.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.2236, allocations: 76 kB / 365.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.211e-05/0.2236, allocations: 48 kB / 365.5 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003805/0.2274, allocations: 1.575 MB / 367 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/0.2395, allocations: 7.231 MB / 374.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003083/0.2427, allocations: 1.202 MB / 375.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.2438, allocations: 460.3 kB / 375.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.685e-05/0.2439, allocations: 9 kB / 375.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.499e-05/0.244, allocations: 43.56 kB / 376 MB, free: 2.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 4.499e-06/0.244, allocations: 4 kB / 376 MB, free: 2.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.3056/0.5496, allocations: 7.86 MB / 383.8 MB, free: 52.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.5497, allocations: 62.75 kB / 383.9 MB, free: 52.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003014/0.5527, allocations: 1.238 MB / 385.1 MB, free: 51.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.5529, allocations: 46.23 kB / 385.2 MB, free: 51.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000928/0.5538, allocations: 0.9946 MB / 386.2 MB, free: 50.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.5543, allocations: 396.3 kB / 386.6 MB, free: 50.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005853/0.5549, allocations: 267.5 kB / 386.8 MB, free: 50.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.186e-05/0.555, allocations: 307.8 kB / 387.1 MB, free: 50.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.5569, allocations: 0.7314 MB / 387.9 MB, free: 49.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/0.5594, allocations: 1.189 MB / 389 MB, free: 48.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/0.5631, allocations: 1.802 MB / 390.8 MB, free: 47.83 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.5631, allocations: 10.12 kB / 390.9 MB, free: 47.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004676/0.5678, allocations: 2.138 MB / 393 MB, free: 46.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.5679, allocations: 14.88 kB / 393 MB, free: 46.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/0.5679, allocations: 17.38 kB / 393 MB, free: 46.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.5681, allocations: 42.64 kB / 393.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.5699, allocations: 418.3 kB / 393.5 MB, free: 46.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008608/0.5708, allocations: 1.284 MB / 394.8 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.5725, allocations: 135.3 kB / 394.9 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.5727, allocations: 64.25 kB / 394.9 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002531/0.5752, allocations: 0.9856 MB / 395.9 MB, free: 45.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001666/0.5769, allocations: 1.149 MB / 397.1 MB, free: 44.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002955/0.5798, allocations: 1.74 MB / 398.8 MB, free: 42.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.568e-05/0.5799, allocations: 7.531 kB / 398.8 MB, free: 42.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004943/0.5848, allocations: 2.054 MB / 400.9 MB, free: 41.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.5849, allocations: 10.97 kB / 400.9 MB, free: 41.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.585, allocations: 20.92 kB / 400.9 MB, free: 41.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.5851, allocations: 46.02 kB / 401 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.5868, allocations: 399.2 kB / 401.4 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008454/0.5876, allocations: 1.288 MB / 402.6 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.5893, allocations: 123.8 kB / 402.8 MB, free: 40.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.5894, allocations: 64 kB / 402.8 MB, free: 40.03 MB / 318.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.000463/0.5899, allocations: 281 kB / 403.1 MB, free: 39.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004575/0.5904, allocations: 162.1 kB / 403.3 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.5939, allocations: 1.578 MB / 404.8 MB, free: 37.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.5939, allocations: 12 kB / 404.8 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.594, allocations: 0 / 404.8 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.668e-05/0.594, allocations: 7.969 kB / 404.9 MB, free: 37.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008372/0.6024, allocations: 3.758 MB / 408.6 MB, free: 34.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.6024, allocations: 12 kB / 408.6 MB, free: 34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.6035, allocations: 264.4 kB / 408.9 MB, free: 33.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/0.6036, allocations: 28.86 kB / 408.9 MB, free: 33.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.578e-05/0.6037, allocations: 31.98 kB / 408.9 MB, free: 33.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006917/0.6044, allocations: 1.29 MB / 410.2 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.6044, allocations: 15.94 kB / 410.2 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/0.6086, allocations: 2.229 MB / 412.5 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000663/0.6093, allocations: 303 kB / 412.8 MB, free: 29.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003685/0.6096, allocations: 31.98 kB / 412.8 MB, free: 29.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6107, allocations: 107.9 kB / 412.9 MB, free: 29.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.611, allocations: 128.2 kB / 413 MB, free: 29.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.2e-05/0.6111, allocations: 36 kB / 413.1 MB, free: 29.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.6124, allocations: 0.8142 MB / 413.9 MB, free: 28.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6124, allocations: 0 / 413.9 MB, free: 28.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002601/0.615, allocations: 0.6094 MB / 414.5 MB, free: 27.81 MB / 318.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.0002362/0.6153, allocations: 146.9 kB / 414.6 MB, free: 27.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005599/0.6209, allocations: 2.806 MB / 417.4 MB, free: 24.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/0.6209, allocations: 4 kB / 417.4 MB, free: 24.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.6224, allocations: 0.703 MB / 418.1 MB, free: 24.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.6244, allocations: 348.2 kB / 418.5 MB, free: 23.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006422/0.6308, allocations: 4.409 MB / 422.9 MB, free: 19.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009753/0.6318, allocations: 1.349 MB / 424.2 MB, free: 17.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.6335, allocations: 288.5 kB / 424.5 MB, free: 17.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/0.6339, allocations: 103.4 kB / 424.6 MB, free: 17.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.6339, allocations: 0 / 424.6 MB, free: 17.48 MB / 318.1 MB Notification: Performance of Templates: time 0.02793/0.6619, allocations: 17.01 MB / 441.6 MB, free: 488 kB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)