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.001435/0.001436, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.896/1.896, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.002213/0.002213, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3736, allocations: 46.64 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.02113/0.3948, allocations: 15.17 MB / 340.5 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01423/0.4091, allocations: 5.684 MB / 346.2 MB, free: 15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005109/0.4143, allocations: 71.69 kB / 346.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004263/0.4187, allocations: 0.9626 MB / 347.2 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005754/0.4245, allocations: 0.6198 MB / 347.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003453/0.428, allocations: 0.7412 MB / 348.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00706/0.4351, allocations: 2.734 MB / 351.3 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002855/0.438, allocations: 1.292 MB / 352.6 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002713/0.4407, allocations: 1.035 MB / 353.6 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.4427, allocations: 1.065 MB / 354.7 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004719/0.4432, allocations: 268 kB / 354.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005315/0.4437, allocations: 260 kB / 355.2 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000566/0.4443, allocations: 0.5333 MB / 355.7 MB, free: 5.355 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.4459, allocations: 1.158 MB / 356.9 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.4502, allocations: 3.095 MB / 360 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.487e-05/0.4503, allocations: 0 / 360 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.4503, allocations: 3.938 kB / 360 MB, free: 1.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.689e-05/0.4504, allocations: 0 / 360 MB, free: 1.082 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.006264/0.4567, allocations: 2.462 MB / 362.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.326e-05/0.4568, allocations: 19.89 kB / 362.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005172/0.4573, allocations: 250 kB / 362.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002363/0.4597, allocations: 1.226 MB / 363.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.46, allocations: 253.4 kB / 364.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002756/0.4603, allocations: 196 kB / 364.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/0.4641, allocations: 1.919 MB / 366.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.4641, allocations: 7.891 kB / 366.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.4643, allocations: 80 kB / 366.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.365e-05/0.4643, allocations: 47.94 kB / 366.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00397/0.4683, allocations: 1.575 MB / 368 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/0.4804, allocations: 7.236 MB / 375.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.4832, allocations: 1.21 MB / 376.5 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.4843, allocations: 456.3 kB / 376.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-05/0.4844, allocations: 12.98 kB / 376.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.4845, allocations: 39.56 kB / 377 MB, free: 15.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.266e-06/0.4845, allocations: 0 / 377 MB, free: 15.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.03438/0.5189, allocations: 7.859 MB / 384.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.519, allocations: 64.41 kB / 384.9 MB, free: 7.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.5218, allocations: 1.244 MB / 386.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.5219, allocations: 45.7 kB / 386.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.5231, allocations: 0.99 MB / 387.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000529/0.5236, allocations: 398.3 kB / 387.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005802/0.5242, allocations: 263.4 kB / 387.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.5244, allocations: 305.1 kB / 388.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.5264, allocations: 0.7348 MB / 388.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.5287, allocations: 1.187 MB / 390 MB, free: 2.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00385/0.5326, allocations: 1.805 MB / 391.8 MB, free: 40 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.5326, allocations: 4 kB / 391.8 MB, free: 36 kB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004948/0.5376, allocations: 2.141 MB / 394 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.5376, allocations: 15.98 kB / 394 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-05/0.5377, allocations: 16 kB / 394 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/0.5379, allocations: 36.8 kB / 394 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.5397, allocations: 415.8 kB / 394.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.5408, allocations: 1.378 MB / 395.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.5424, allocations: 140 kB / 396 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.5425, allocations: 64 kB / 396 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002441/0.5449, allocations: 0.9802 MB / 397 MB, free: 10.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002012/0.547, allocations: 1.158 MB / 398.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00351/0.5505, allocations: 1.74 MB / 399.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.458e-06/0.5505, allocations: 4 kB / 399.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004701/0.5552, allocations: 2.059 MB / 402 MB, free: 5.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.5553, allocations: 16.44 kB / 402 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.5553, allocations: 19.94 kB / 402 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001164/0.5554, allocations: 48.84 kB / 402 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.5571, allocations: 391.4 kB / 402.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.5582, allocations: 1.382 MB / 403.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/0.5598, allocations: 120 kB / 403.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.5599, allocations: 67.98 kB / 404 MB, free: 3.105 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.0004555/0.5604, allocations: 283.6 kB / 404.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.5606, allocations: 154 kB / 404.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004235/0.5649, allocations: 1.581 MB / 406 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.5649, allocations: 8 kB / 406 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5649, allocations: 4 kB / 406 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.5649, allocations: 3.984 kB / 406 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00816/0.5731, allocations: 3.76 MB / 409.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.5732, allocations: 15.94 kB / 409.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.5743, allocations: 256.4 kB / 410 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.5744, allocations: 28.84 kB / 410.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.13e-05/0.5745, allocations: 32 kB / 410.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.5756, allocations: 1.378 MB / 411.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-05/0.5756, allocations: 15.94 kB / 411.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004928/0.5805, allocations: 2.238 MB / 413.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000804/0.5814, allocations: 303.1 kB / 414 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.5815, allocations: 35.92 kB / 414.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009776/0.5825, allocations: 107.9 kB / 414.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.5828, allocations: 120.2 kB / 414.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.219e-05/0.5829, allocations: 47.98 kB / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001356/0.5843, allocations: 0.8142 MB / 415.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5843, allocations: 0 / 415.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002452/0.5867, allocations: 0.6094 MB / 415.8 MB, free: 6.754 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.0003026/0.5871, allocations: 162.9 kB / 415.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007012/0.5941, allocations: 2.867 MB / 418.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.5941, allocations: 4 kB / 418.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001747/0.5959, allocations: 0.7083 MB / 419.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.5982, allocations: 352.9 kB / 419.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007316/0.6055, allocations: 3.593 MB / 423.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.6068, allocations: 1.345 MB / 424.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002079/0.6089, allocations: 284.5 kB / 425.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.6094, allocations: 99.44 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6094, allocations: 0 / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of Templates: time 0.03813/0.6476, allocations: 18.01 MB / 443.2 MB, free: 11.08 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)