Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001475/0.001475, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.002095/0.002095, allocations: 192.2 kB / 16.25 MB, free: 6.586 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.95/1.95, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001707/0.001707, allocations: 47.94 kB / 278.2 MB, free: 12.63 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4469/0.4486, allocations: 46.63 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.02461/0.4733, allocations: 15.01 MB / 339.9 MB, free: 5.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01629/0.4897, allocations: 5.533 MB / 345.4 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006119/0.4958, allocations: 71.62 kB / 345.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005237/0.5012, allocations: 0.8547 MB / 346.3 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.505, allocations: 0.5158 MB / 346.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002335/0.5074, allocations: 0.6635 MB / 347.5 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004616/0.512, allocations: 2.738 MB / 350.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002367/0.5144, allocations: 1.292 MB / 351.5 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.5162, allocations: 1.058 MB / 352.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001677/0.5179, allocations: 1.077 MB / 353.7 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006933/0.5186, allocations: 260 kB / 353.9 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007417/0.5193, allocations: 260 kB / 354.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006847/0.52, allocations: 0.5294 MB / 354.7 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.5215, allocations: 1.166 MB / 355.9 MB, free: 4.938 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002835/0.5243, allocations: 3.099 MB / 359 MB, free: 1.828 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.5244, allocations: 0 / 359 MB, free: 1.828 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5244, allocations: 0 / 359 MB, free: 1.828 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.81e-05/0.5244, allocations: 4 kB / 359 MB, free: 1.824 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.00407/0.5285, allocations: 2.458 MB / 361.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.5285, allocations: 11.89 kB / 361.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.5289, allocations: 254 kB / 361.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.5307, allocations: 1.222 MB / 362.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.5309, allocations: 253.3 kB / 363.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002472/0.5312, allocations: 200 kB / 363.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003279/0.5345, allocations: 1.911 MB / 365.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.046e-05/0.5345, allocations: 11.84 kB / 365.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.5347, allocations: 76 kB / 365.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.86e-05/0.5347, allocations: 55.94 kB / 365.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003161/0.5379, allocations: 1.571 MB / 367 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009863/0.5478, allocations: 7.236 MB / 374.2 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.5505, allocations: 1.202 MB / 375.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000955/0.5514, allocations: 460.3 kB / 375.9 MB, free: 344 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.332e-05/0.5515, allocations: 9 kB / 375.9 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.5516, allocations: 47.55 kB / 375.9 MB, free: 280 kB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 5.26e-06/0.5516, allocations: 8 kB / 375.9 MB, free: 272 kB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.02953/0.5811, allocations: 7.856 MB / 383.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.5813, allocations: 68.34 kB / 383.8 MB, free: 8.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.5833, allocations: 1.24 MB / 385.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.596e-05/0.5834, allocations: 45.7 kB / 385.1 MB, free: 6.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006807/0.5841, allocations: 0.99 MB / 386.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003188/0.5844, allocations: 394.4 kB / 386.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/0.5848, allocations: 271.3 kB / 386.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.5849, allocations: 309.1 kB / 387.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.5867, allocations: 0.7348 MB / 387.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/0.5887, allocations: 1.183 MB / 389 MB, free: 2.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003466/0.5921, allocations: 1.805 MB / 390.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.5922, allocations: 4 kB / 390.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004538/0.5967, allocations: 2.145 MB / 392.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.5968, allocations: 12 kB / 393 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.5968, allocations: 12 kB / 393 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.597, allocations: 49.34 kB / 393 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.5986, allocations: 411.4 kB / 393.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.5996, allocations: 1.382 MB / 394.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.6011, allocations: 135.9 kB / 394.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.6012, allocations: 64 kB / 395 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002234/0.6034, allocations: 0.9803 MB / 396 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001822/0.6053, allocations: 1.15 MB / 397.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003129/0.6084, allocations: 1.74 MB / 398.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.297e-06/0.6084, allocations: 4 kB / 398.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004183/0.6126, allocations: 2.067 MB / 400.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.6126, allocations: 12 kB / 400.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.6127, allocations: 19.94 kB / 401 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001073/0.6128, allocations: 36.86 kB / 401 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.6144, allocations: 403.7 kB / 401.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000962/0.6154, allocations: 1.386 MB / 402.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.617, allocations: 115.9 kB / 402.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.6171, allocations: 64 kB / 403 MB, free: 3.855 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.0005045/0.6176, allocations: 287.8 kB / 403.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.6179, allocations: 158 kB / 403.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/0.6217, allocations: 1.581 MB / 405 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.6218, allocations: 12 kB / 405 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6218, allocations: 0 / 405 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.6218, allocations: 3.984 kB / 405 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007159/0.629, allocations: 3.761 MB / 408.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.629, allocations: 12.25 kB / 408.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.6301, allocations: 259.6 kB / 409 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/0.6302, allocations: 36.84 kB / 409.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.803e-05/0.6303, allocations: 32 kB / 409.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009445/0.6313, allocations: 1.378 MB / 410.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.6313, allocations: 19.94 kB / 410.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004164/0.6354, allocations: 2.222 MB / 412.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005859/0.6361, allocations: 307.1 kB / 413 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.6362, allocations: 32 kB / 413 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008499/0.6371, allocations: 103.9 kB / 413.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.6373, allocations: 124.2 kB / 413.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-05/0.6374, allocations: 36 kB / 413.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.6385, allocations: 0.822 MB / 414.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6385, allocations: 3.938 kB / 414.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001891/0.6404, allocations: 0.6094 MB / 414.7 MB, free: 7.5 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.0002137/0.6406, allocations: 151 kB / 414.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006018/0.6467, allocations: 2.872 MB / 417.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.6467, allocations: 4 kB / 417.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.6482, allocations: 0.7068 MB / 418.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.65, allocations: 361 kB / 418.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006328/0.6563, allocations: 4.409 MB / 423.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.6575, allocations: 1.341 MB / 424.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001684/0.6592, allocations: 296.4 kB / 424.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003951/0.6596, allocations: 107.4 kB / 425 MB, free: 13.03 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6596, allocations: 0 / 425 MB, free: 13.03 MB / 366.1 MB Notification: Performance of Templates: time 0.03577/0.6953, allocations: 17.76 MB / 442.7 MB, free: 11.24 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)