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.00112/0.001121, allocations: 90.75 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.001484/0.001485, 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.976/1.976, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.0006221/0.0006224, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3278, allocations: 47.59 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01581/0.3437, allocations: 13.34 MB / 339.8 MB, free: 6.098 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01288/0.3566, allocations: 5.321 MB / 345.1 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004204/0.3608, allocations: 71.62 kB / 345.2 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003135/0.364, allocations: 0.7845 MB / 346 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003001/0.367, allocations: 0.4884 MB / 346.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002219/0.3693, allocations: 475.4 kB / 347 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004768/0.3741, allocations: 2.421 MB / 349.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002563/0.3766, allocations: 0.8895 MB / 350.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.3787, allocations: 0.793 MB / 351.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.3806, allocations: 0.8394 MB / 351.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006084/0.3813, allocations: 100 kB / 352 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000719/0.382, allocations: 96 kB / 352.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005345/0.3825, allocations: 338.4 kB / 352.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000969/0.3835, allocations: 424.6 kB / 352.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.3864, allocations: 2.446 MB / 355.3 MB, free: 6.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3864, allocations: 4 kB / 355.3 MB, free: 6.551 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3864, allocations: 4 kB / 355.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.3866, allocations: 0 / 355.3 MB, free: 6.547 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.005103/0.3917, allocations: 2.127 MB / 357.4 MB, free: 4.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3918, allocations: 12.03 kB / 357.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006407/0.3924, allocations: 257 kB / 357.7 MB, free: 4.098 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.3949, allocations: 1.175 MB / 358.8 MB, free: 2.867 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/0.3952, allocations: 264.7 kB / 359.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000396/0.3956, allocations: 195.9 kB / 359.3 MB, free: 2.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004295/0.3999, allocations: 1.93 MB / 361.2 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.288e-05/0.4, allocations: 15.84 kB / 361.2 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/0.4002, allocations: 76 kB / 361.3 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.4002, allocations: 48 kB / 361.4 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003763/0.404, allocations: 1.626 MB / 363 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/0.4161, allocations: 7.297 MB / 370.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002641/0.4188, allocations: 1.249 MB / 371.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.4199, allocations: 476.3 kB / 372 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-05/0.42, allocations: 16.97 kB / 372 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.42, allocations: 43.56 kB / 372.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.946e-06/0.4201, allocations: 4 kB / 372.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03106/0.4511, allocations: 8.814 MB / 380.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.4512, allocations: 60.41 kB / 380.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002383/0.4536, allocations: 1.236 MB / 382.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.4537, allocations: 45.7 kB / 382.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009373/0.4547, allocations: 0.9939 MB / 383.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/0.4552, allocations: 394.3 kB / 383.6 MB, free: 9.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.957e-05/0.4553, allocations: 32 kB / 383.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.4555, allocations: 365.9 kB / 384 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/0.4574, allocations: 0.769 MB / 384.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002268/0.4597, allocations: 1.234 MB / 386 MB, free: 6.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.4615, allocations: 0.8027 MB / 386.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.4615, allocations: 8 kB / 386.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.0047/0.4662, allocations: 2.223 MB / 389 MB, free: 3.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004723/0.4667, allocations: 0.5155 MB / 389.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.401e-05/0.4668, allocations: 16 kB / 389.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.467, allocations: 48.84 kB / 389.6 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.4688, allocations: 447.2 kB / 390 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.4699, allocations: 1.28 MB / 391.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.4715, allocations: 168 kB / 391.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.4717, allocations: 64 kB / 391.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/0.4717, allocations: 8 kB / 391.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00418/0.4759, allocations: 1.954 MB / 393.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.512e-05/0.4759, allocations: 16 kB / 393.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.4761, allocations: 48.84 kB / 393.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.4777, allocations: 415.9 kB / 394 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.4787, allocations: 1.284 MB / 395.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.4803, allocations: 144 kB / 395.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.4805, allocations: 64 kB / 395.5 MB, free: 12.85 MB / 334.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.moving[1],kinematicPTP.noWphase,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 (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.00134/0.4818, allocations: 492.5 kB / 395.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/0.4823, allocations: 158 kB / 396.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.4867, allocations: 1.679 MB / 397.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.4867, allocations: 12 kB / 397.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.4867, allocations: 3.953 kB / 397.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.4867, allocations: 7.969 kB / 397.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009494/0.4962, allocations: 3.913 MB / 401.7 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.255e-05/0.4963, allocations: 8 kB / 401.7 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.4976, allocations: 280.3 kB / 402 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001437/0.4978, allocations: 40.84 kB / 402 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.4979, allocations: 32 kB / 402.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.4991, allocations: 1.28 MB / 403.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/0.4991, allocations: 11.94 kB / 403.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004955/0.5041, allocations: 2.374 MB / 405.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009692/0.5051, allocations: 307 kB / 406 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004613/0.5056, allocations: 35.98 kB / 406.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.5069, allocations: 135.9 kB / 406.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/0.5073, allocations: 132.2 kB / 406.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5075, allocations: 40 kB / 406.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.5096, allocations: 0.7986 MB / 407.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5096, allocations: 0 / 407.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003251/0.5129, allocations: 0.6094 MB / 407.8 MB, free: 15.95 MB / 350.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 (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.000356/0.5133, allocations: 158.7 kB / 407.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007032/0.5203, allocations: 2.927 MB / 410.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.01e-05/0.5204, allocations: 4 kB / 410.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.5223, allocations: 0.754 MB / 411.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.525, allocations: 353 kB / 412 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009189/0.5342, allocations: 4.302 MB / 416.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.5358, allocations: 1.341 MB / 417.6 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002004/0.5378, allocations: 296.4 kB / 417.9 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004978/0.5383, allocations: 107.4 kB / 418 MB, free: 5.492 MB / 350.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5383, allocations: 0 / 418 MB, free: 5.492 MB / 350.1 MB Notification: Performance of Templates: time 0.03542/0.5738, allocations: 16.39 MB / 434.4 MB, free: 5.082 MB / 366.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)