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.001026/0.001026, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.008236/0.008237, allocations: 172.7 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0005048/0.0005045, allocations: 12.42 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 47.58 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01742/0.3587, allocations: 14.29 MB / 341.3 MB, free: 5.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01488/0.3736, allocations: 5.49 MB / 346.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005064/0.3788, allocations: 75.62 kB / 346.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003674/0.3825, allocations: 0.8352 MB / 347.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003395/0.3859, allocations: 0.5197 MB / 348.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.3879, allocations: 0.6556 MB / 348.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004104/0.392, allocations: 2.57 MB / 351.5 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.3939, allocations: 1.137 MB / 352.6 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3956, allocations: 0.8277 MB / 353.4 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.3967, allocations: 0.8741 MB / 354.3 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.3969, allocations: 96 kB / 354.4 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002167/0.3971, allocations: 100 kB / 354.5 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003327/0.3975, allocations: 354.2 kB / 354.8 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.3987, allocations: 0.992 MB / 355.8 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003221/0.4019, allocations: 2.895 MB / 358.7 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.411e-05/0.402, allocations: 4 kB / 358.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.402, allocations: 0 / 358.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.199e-05/0.4021, allocations: 0 / 358.7 MB, free: 3.512 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.004644/0.4067, allocations: 2.108 MB / 360.8 MB, free: 1.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4068, allocations: 8.031 kB / 360.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003818/0.4072, allocations: 253.9 kB / 361.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.4093, allocations: 1.241 MB / 362.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003144/0.4096, allocations: 257.4 kB / 362.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002804/0.4099, allocations: 200 kB / 362.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003803/0.4137, allocations: 1.946 MB / 364.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/0.4138, allocations: 8 kB / 364.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.4139, allocations: 76 kB / 364.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.014e-05/0.414, allocations: 48 kB / 364.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003713/0.4177, allocations: 1.63 MB / 366.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.4283, allocations: 7.297 MB / 373.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/0.4311, allocations: 1.257 MB / 375 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4322, allocations: 480.2 kB / 375.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.59e-05/0.4323, allocations: 20.98 kB / 375.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.4323, allocations: 39.56 kB / 375.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 3.717e-06/0.4324, allocations: 0 / 375.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03402/0.4664, allocations: 8.837 MB / 384.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.4665, allocations: 64.41 kB / 384.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.469, allocations: 1.24 MB / 385.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.4691, allocations: 45.7 kB / 385.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007655/0.4699, allocations: 0.9977 MB / 386.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/0.4702, allocations: 390.4 kB / 387.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.4704, allocations: 125.6 kB / 387.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4706, allocations: 305.1 kB / 387.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.4725, allocations: 0.7808 MB / 388.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002353/0.4749, allocations: 1.238 MB / 389.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/0.479, allocations: 1.906 MB / 391.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4791, allocations: 4 kB / 391.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005298/0.4844, allocations: 2.247 MB / 393.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004098/0.4848, allocations: 0.5194 MB / 394.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.4848, allocations: 16 kB / 394.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.485, allocations: 48.73 kB / 394.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.487, allocations: 435.4 kB / 394.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.4882, allocations: 1.284 MB / 396 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.4899, allocations: 171.9 kB / 396.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.49, allocations: 64 kB / 396.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.49, allocations: 4 kB / 396.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004362/0.4944, allocations: 1.966 MB / 398.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.4945, allocations: 16 kB / 398.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001274/0.4946, allocations: 45.23 kB / 398.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.4963, allocations: 419.4 kB / 398.7 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.4973, allocations: 1.276 MB / 400 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.499, allocations: 156 kB / 400.1 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.4991, allocations: 64 kB / 400.2 MB, free: 8.328 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.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.001332/0.5004, allocations: 488.5 kB / 400.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000367/0.5008, allocations: 158 kB / 400.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.5055, allocations: 1.683 MB / 402.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.5055, allocations: 8 kB / 402.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5055, allocations: 4 kB / 402.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.5055, allocations: 3.984 kB / 402.5 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009844/0.5154, allocations: 3.92 MB / 406.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.768e-05/0.5155, allocations: 8.969 kB / 406.4 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.5167, allocations: 287.6 kB / 406.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.5168, allocations: 36.84 kB / 406.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-05/0.5169, allocations: 32 kB / 406.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.518, allocations: 1.272 MB / 408.1 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/0.518, allocations: 15.94 kB / 408.1 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.5236, allocations: 2.386 MB / 410.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.5246, allocations: 303 kB / 410.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.5249, allocations: 36.11 kB / 410.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5259, allocations: 139.8 kB / 410.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/0.5262, allocations: 128.1 kB / 411.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/0.5263, allocations: 43.94 kB / 411.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.5277, allocations: 0.8142 MB / 411.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5277, allocations: 0 / 411.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002554/0.5303, allocations: 0.6094 MB / 412.5 MB, free: 11.4 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 (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.0003378/0.5306, allocations: 154.9 kB / 412.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007096/0.5378, allocations: 2.939 MB / 415.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/0.5378, allocations: 4 kB / 415.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.5397, allocations: 0.7578 MB / 416.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/0.5437, allocations: 341 kB / 416.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008113/0.5518, allocations: 4.536 MB / 421.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.553, allocations: 1.349 MB / 422.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.5548, allocations: 288.5 kB / 422.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003938/0.5552, allocations: 107.4 kB / 423 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of SimCode: time 2.405e-06/0.5552, allocations: 0 / 423 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of Templates: time 0.03834/0.5936, allocations: 16.85 MB / 439.8 MB, free: 15.84 MB / 382.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)