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.004778/0.004778, allocations: 102.7 kB / 15.73 MB, free: 6.016 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.0009968/0.0009968, allocations: 197.4 kB / 16.68 MB, free: 5.938 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.889/1.889, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.001294/0.001294, allocations: 48.39 kB / 326.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1442, allocations: 46.63 MB / 373.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.2786/0.4229, allocations: 15.16 MB / 388.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01354/0.4365, allocations: 5.682 MB / 394 MB, free: 288 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005617/0.4422, allocations: 74.72 kB / 394.1 MB, free: 264 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004756/0.4471, allocations: 1.005 MB / 395.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004106/0.4512, allocations: 0.6658 MB / 395.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.4537, allocations: 0.7463 MB / 396.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005137/0.4589, allocations: 2.746 MB / 399.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002281/0.4612, allocations: 1.284 MB / 400.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.4639, allocations: 1.074 MB / 401.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.4659, allocations: 1.074 MB / 402.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004541/0.4663, allocations: 260.1 kB / 403 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.4669, allocations: 262.5 kB / 403.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005841/0.4675, allocations: 0.528 MB / 403.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.4689, allocations: 1.156 MB / 404.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004071/0.473, allocations: 3.163 MB / 408.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.473, allocations: 0 / 408.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.473, allocations: 0 / 408.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.475e-05/0.4731, allocations: 0 / 408.1 MB, free: 8.266 MB / 334.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.005792/0.4789, allocations: 2.471 MB / 410.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.479, allocations: 15.2 kB / 410.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005462/0.4795, allocations: 253.8 kB / 410.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/0.482, allocations: 1.263 MB / 412.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.4823, allocations: 260.8 kB / 412.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/0.4826, allocations: 194.6 kB / 412.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004085/0.4867, allocations: 1.92 MB / 414.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.88e-05/0.4868, allocations: 2.438 kB / 414.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.487, allocations: 76.78 kB / 414.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.304e-05/0.487, allocations: 45.81 kB / 414.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003793/0.4908, allocations: 1.573 MB / 416.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01278/0.5036, allocations: 7.161 MB / 423.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.5065, allocations: 1.21 MB / 424.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.5075, allocations: 464.3 kB / 424.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.873e-05/0.5076, allocations: 9 kB / 425 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.5076, allocations: 51.44 kB / 425 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 2.695e-06/0.5076, allocations: 4 kB / 425 MB, free: 11.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.03327/0.5409, allocations: 7.866 MB / 432.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.541, allocations: 72.34 kB / 432.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002155/0.5432, allocations: 1.244 MB / 434.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.5433, allocations: 45.7 kB / 434.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007868/0.5441, allocations: 0.99 MB / 435.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00041/0.5445, allocations: 390.4 kB / 435.6 MB, free: 388 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004816/0.545, allocations: 267.3 kB / 435.9 MB, free: 116 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5452, allocations: 305.1 kB / 436.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.5472, allocations: 0.7387 MB / 436.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002271/0.5495, allocations: 1.183 MB / 438.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.5536, allocations: 1.805 MB / 439.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.5536, allocations: 4 kB / 439.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005839/0.5595, allocations: 2.145 MB / 442 MB, free: 9.496 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/0.5596, allocations: 12 kB / 442 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/0.5596, allocations: 16 kB / 442.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002282/0.5598, allocations: 37.34 kB / 442.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.5616, allocations: 419.4 kB / 442.5 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.5629, allocations: 1.374 MB / 443.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.5647, allocations: 147.9 kB / 444 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.5648, allocations: 64 kB / 444.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002705/0.5675, allocations: 0.9763 MB / 445.1 MB, free: 6.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002147/0.5697, allocations: 1.158 MB / 446.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00376/0.5734, allocations: 1.736 MB / 448 MB, free: 3.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.718e-06/0.5735, allocations: 4 kB / 448 MB, free: 3.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.006406/0.5799, allocations: 2.063 MB / 450 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.5799, allocations: 8.5 kB / 450 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-05/0.58, allocations: 16 kB / 450.1 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.5801, allocations: 48.84 kB / 450.1 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.5828, allocations: 399.3 kB / 450.5 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.5843, allocations: 1.378 MB / 451.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00278/0.5871, allocations: 127.9 kB / 452 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.5873, allocations: 64 kB / 452.1 MB, free: 14.74 MB / 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.0006927/0.588, allocations: 283.6 kB / 452.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.5885, allocations: 154 kB / 452.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005806/0.5943, allocations: 1.581 MB / 454.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.312e-05/0.5944, allocations: 15.98 kB / 454.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.5944, allocations: 0 / 454.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.5944, allocations: 11.92 kB / 454.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008948/0.6034, allocations: 3.75 MB / 457.8 MB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/0.6034, allocations: 12.03 kB / 457.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.6046, allocations: 259.6 kB / 458.1 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.6048, allocations: 32.86 kB / 458.1 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.981e-05/0.6048, allocations: 31.98 kB / 458.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.6061, allocations: 1.378 MB / 459.5 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.397e-05/0.6061, allocations: 15.94 kB / 459.6 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005206/0.6113, allocations: 2.223 MB / 461.8 MB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009632/0.6123, allocations: 307 kB / 462.1 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.6125, allocations: 32 kB / 462.1 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009759/0.6135, allocations: 107.9 kB / 462.2 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.6138, allocations: 120.2 kB / 462.3 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.211e-05/0.6138, allocations: 40 kB / 462.4 MB, free: 3.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.6152, allocations: 0.8181 MB / 463.2 MB, free: 3.004 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6153, allocations: 8 kB / 463.2 MB, free: 2.996 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00256/0.6178, allocations: 0.6055 MB / 463.8 MB, free: 2.391 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.0004006/0.6182, allocations: 150.9 kB / 464 MB, free: 2.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00738/0.6256, allocations: 2.829 MB / 466.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.6257, allocations: 4 kB / 466.8 MB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.6274, allocations: 0.7074 MB / 467.5 MB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.6295, allocations: 373.6 kB / 467.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.6368, allocations: 3.53 MB / 471.4 MB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001376/0.6382, allocations: 1.341 MB / 472.7 MB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.6395, allocations: 296.4 kB / 473 MB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004016/0.6399, allocations: 103.4 kB / 473.1 MB, free: 8.855 MB / 398.1 MB Notification: Performance of SimCode: time 2.815e-06/0.64, allocations: 112 / 473.1 MB, free: 8.855 MB / 398.1 MB Notification: Performance of Templates: time 0.03968/0.6796, allocations: 18.34 MB / 491.5 MB, free: 6.48 MB / 414.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)