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.009316/0.009316, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001618/0.001619, allocations: 190.6 kB / 16.67 MB, free: 5.949 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.036/2.036, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001255/0.001255, allocations: 57.17 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.137, allocations: 46.62 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01746/0.1545, allocations: 15.17 MB / 388.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01374/0.1683, allocations: 5.669 MB / 394 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004663/0.1731, allocations: 71.62 kB / 394.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004097/0.1772, allocations: 1.017 MB / 395.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003754/0.181, allocations: 0.6628 MB / 395.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002542/0.1836, allocations: 0.7451 MB / 396.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.1887, allocations: 2.753 MB / 399.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002849/0.1916, allocations: 1.284 MB / 400.6 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.1939, allocations: 1.074 MB / 401.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.1961, allocations: 1.069 MB / 402.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008296/0.1969, allocations: 264 kB / 403 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009347/0.1979, allocations: 267.9 kB / 403.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007774/0.1987, allocations: 0.5255 MB / 403.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002226/0.2009, allocations: 1.154 MB / 404.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003544/0.2045, allocations: 3.161 MB / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2045, allocations: 0 / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2045, allocations: 0 / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.307e-05/0.2045, allocations: 0 / 408.1 MB, free: 14.21 MB / 350.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.004011/0.2085, allocations: 2.466 MB / 410.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2086, allocations: 15.89 kB / 410.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.2089, allocations: 253.9 kB / 410.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.2108, allocations: 1.265 MB / 412.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/0.2111, allocations: 257.3 kB / 412.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002298/0.2113, allocations: 196 kB / 412.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003132/0.2145, allocations: 1.915 MB / 414.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/0.2145, allocations: 4 kB / 414.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.2147, allocations: 76 kB / 414.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.2147, allocations: 48 kB / 414.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00309/0.2178, allocations: 1.579 MB / 416.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009279/0.2271, allocations: 7.153 MB / 423.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.2296, allocations: 1.218 MB / 424.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009287/0.2305, allocations: 456.3 kB / 424.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.382e-05/0.2306, allocations: 13 kB / 425 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.2306, allocations: 39.56 kB / 425 MB, free: 12.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 3.026e-06/0.2307, allocations: 3.938 kB / 425 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.02882/0.2595, allocations: 7.875 MB / 432.9 MB, free: 4.664 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.2596, allocations: 64.41 kB / 432.9 MB, free: 4.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/0.2617, allocations: 1.24 MB / 434.2 MB, free: 3.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.79e-05/0.2618, allocations: 45.7 kB / 434.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007322/0.2626, allocations: 0.9977 MB / 435.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.2629, allocations: 386.4 kB / 435.6 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004771/0.2634, allocations: 275.3 kB / 435.9 MB, free: 1.621 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.2635, allocations: 305.1 kB / 436.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.2653, allocations: 0.7309 MB / 436.9 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002031/0.2673, allocations: 1.195 MB / 438.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003821/0.2711, allocations: 1.809 MB / 439.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.2712, allocations: 4 kB / 439.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005/0.2762, allocations: 2.137 MB / 442 MB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.2762, allocations: 12 kB / 442 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.899e-05/0.2763, allocations: 12 kB / 442.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.2765, allocations: 44.84 kB / 442.1 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.2783, allocations: 419.6 kB / 442.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.2796, allocations: 1.382 MB / 443.9 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.2813, allocations: 139.9 kB / 444 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.2814, allocations: 64 kB / 444.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002416/0.2838, allocations: 0.9802 MB / 445.1 MB, free: 7.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002264/0.2861, allocations: 1.15 MB / 446.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003499/0.2896, allocations: 1.736 MB / 448 MB, free: 4.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.814e-05/0.2897, allocations: 4 kB / 448 MB, free: 4.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004866/0.2945, allocations: 2.063 MB / 450 MB, free: 2.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.2946, allocations: 12 kB / 450 MB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.2946, allocations: 19.98 kB / 450.1 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.2948, allocations: 37.3 kB / 450.1 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.2964, allocations: 403.4 kB / 450.5 MB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.2977, allocations: 1.371 MB / 451.9 MB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.2993, allocations: 127.9 kB / 452 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.2995, allocations: 68 kB / 452.1 MB, free: 260 kB / 382.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.2455/0.5449, allocations: 277.1 kB / 452.3 MB, free: 70.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005738/0.5455, allocations: 154 kB / 452.5 MB, free: 70.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004999/0.5505, allocations: 1.582 MB / 454.1 MB, free: 70.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.5506, allocations: 16.27 kB / 454.1 MB, free: 70.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.5506, allocations: 0 / 454.1 MB, free: 70.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.5506, allocations: 6.562 kB / 454.1 MB, free: 70.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009283/0.5599, allocations: 3.766 MB / 457.8 MB, free: 69.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/0.56, allocations: 9.531 kB / 457.9 MB, free: 69.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.5613, allocations: 258.8 kB / 458.1 MB, free: 69.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001325/0.5615, allocations: 33.52 kB / 458.1 MB, free: 69.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.216e-05/0.5616, allocations: 35.52 kB / 458.2 MB, free: 69.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009463/0.5625, allocations: 1.37 MB / 459.5 MB, free: 67.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.861e-05/0.5626, allocations: 14.84 kB / 459.6 MB, free: 67.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005219/0.5678, allocations: 2.229 MB / 461.8 MB, free: 66.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000906/0.5687, allocations: 300.8 kB / 462.1 MB, free: 66.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.5689, allocations: 31.44 kB / 462.1 MB, free: 66.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.5699, allocations: 108.4 kB / 462.2 MB, free: 66.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003382/0.5703, allocations: 122.2 kB / 462.3 MB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.888e-05/0.5704, allocations: 44.59 kB / 462.4 MB, free: 66.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001624/0.572, allocations: 0.8146 MB / 463.2 MB, free: 66.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.572, allocations: 0 / 463.2 MB, free: 66.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003298/0.5753, allocations: 0.6087 MB / 463.8 MB, free: 66.01 MB / 382.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.0003329/0.5757, allocations: 153.8 kB / 464 MB, free: 65.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006922/0.5826, allocations: 2.831 MB / 466.8 MB, free: 64.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.089e-05/0.5827, allocations: 2.594 kB / 466.8 MB, free: 64.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.5847, allocations: 0.7004 MB / 467.5 MB, free: 64.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002973/0.5877, allocations: 363.2 kB / 467.8 MB, free: 64.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008648/0.5963, allocations: 3.539 MB / 471.4 MB, free: 62.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001656/0.598, allocations: 1.351 MB / 472.7 MB, free: 61.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001878/0.5999, allocations: 300.3 kB / 473 MB, free: 61.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005469/0.6005, allocations: 100.5 kB / 473.1 MB, free: 61.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.843e-06/0.6005, allocations: 1.75 kB / 473.1 MB, free: 61.51 MB / 382.1 MB Notification: Performance of Templates: time 0.03788/0.6384, allocations: 18.33 MB / 491.5 MB, free: 44.96 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)