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.001959/0.001959, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002961/0.002961, allocations: 195.1 kB / 16.14 MB, free: 6.672 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.838/1.838, allocations: 205.1 MB / 222 MB, free: 4.723 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.001536/0.001536, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3608, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.02053/0.3814, allocations: 15.01 MB / 339.7 MB, free: 5.094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.3974, allocations: 5.533 MB / 345.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006659/0.4041, allocations: 79.62 kB / 345.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005486/0.4098, allocations: 0.8391 MB / 346.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006687/0.4165, allocations: 0.5158 MB / 346.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004283/0.4208, allocations: 0.6557 MB / 347.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007706/0.4285, allocations: 2.574 MB / 349.9 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.4321, allocations: 1.153 MB / 351 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.4349, allocations: 0.9332 MB / 352 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002437/0.4374, allocations: 0.9989 MB / 353 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00049/0.4379, allocations: 152 kB / 353.1 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005363/0.4385, allocations: 144 kB / 353.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006544/0.4391, allocations: 430.2 kB / 353.7 MB, free: 7.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002248/0.4414, allocations: 1.053 MB / 354.7 MB, free: 5.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004848/0.4463, allocations: 3.001 MB / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.4463, allocations: 0 / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4463, allocations: 0 / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.264e-05/0.4464, allocations: 0 / 357.7 MB, free: 2.945 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.01144/0.4579, allocations: 2.462 MB / 360.2 MB, free: 436 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.027e-05/0.458, allocations: 8.031 kB / 360.2 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.4592, allocations: 250 kB / 360.4 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004772/0.464, allocations: 1.233 MB / 361.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005456/0.4646, allocations: 249.4 kB / 361.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006227/0.4653, allocations: 196 kB / 362.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007815/0.4731, allocations: 1.922 MB / 364 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.4733, allocations: 11.89 kB / 364 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/0.4737, allocations: 80 kB / 364.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-05/0.4737, allocations: 48 kB / 364.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007159/0.4809, allocations: 1.567 MB / 365.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/0.4956, allocations: 7.231 MB / 373 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00291/0.4985, allocations: 1.206 MB / 374.2 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.4997, allocations: 452.2 kB / 374.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.033e-05/0.4998, allocations: 24.97 kB / 374.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.4998, allocations: 43.56 kB / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 3.046e-06/0.4998, allocations: 0 / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03419/0.534, allocations: 7.864 MB / 382.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.5341, allocations: 64.41 kB / 382.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/0.537, allocations: 1.236 MB / 383.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.5372, allocations: 45.7 kB / 383.9 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.5386, allocations: 0.9978 MB / 384.9 MB, free: 7.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006196/0.5393, allocations: 386.4 kB / 385.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007734/0.5401, allocations: 267.4 kB / 385.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.5403, allocations: 305.1 kB / 385.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002163/0.5425, allocations: 0.7348 MB / 386.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.545, allocations: 1.191 MB / 387.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003922/0.5489, allocations: 1.805 MB / 389.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/0.5489, allocations: 4 kB / 389.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005303/0.5542, allocations: 2.141 MB / 391.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.5543, allocations: 12 kB / 391.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.5544, allocations: 15.94 kB / 391.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002178/0.5546, allocations: 44.84 kB / 391.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.5564, allocations: 419.4 kB / 392.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.5576, allocations: 1.288 MB / 393.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.5594, allocations: 135.9 kB / 393.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.5596, allocations: 64 kB / 393.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002565/0.5621, allocations: 0.9803 MB / 394.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002078/0.5642, allocations: 1.154 MB / 395.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003463/0.5677, allocations: 1.736 MB / 397.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.275e-05/0.5677, allocations: 4 kB / 397.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004692/0.5724, allocations: 2.055 MB / 399.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.5725, allocations: 15.94 kB / 399.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.5725, allocations: 19.98 kB / 399.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001329/0.5726, allocations: 36.86 kB / 399.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.5743, allocations: 407.6 kB / 400.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.5755, allocations: 1.28 MB / 401.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/0.5771, allocations: 119.9 kB / 401.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.5773, allocations: 67.94 kB / 401.5 MB, free: 5.18 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.0005154/0.5778, allocations: 284.2 kB / 401.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004364/0.5783, allocations: 162.1 kB / 402 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004112/0.5824, allocations: 1.574 MB / 403.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.5824, allocations: 15.98 kB / 403.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5824, allocations: 0 / 403.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.5825, allocations: 11.91 kB / 403.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008239/0.5907, allocations: 3.768 MB / 407.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.5907, allocations: 8 kB / 407.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.5919, allocations: 264.3 kB / 407.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.5921, allocations: 28.86 kB / 407.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.5922, allocations: 35.98 kB / 407.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.5933, allocations: 1.276 MB / 408.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.983e-05/0.5934, allocations: 11.94 kB / 409 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005136/0.5985, allocations: 2.234 MB / 411.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000903/0.5994, allocations: 307 kB / 411.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004494/0.5999, allocations: 35.98 kB / 411.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.6012, allocations: 107.8 kB / 411.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003821/0.6016, allocations: 128.2 kB / 411.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.6017, allocations: 40 kB / 411.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00198/0.6037, allocations: 0.8142 MB / 412.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6037, allocations: 0 / 412.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002905/0.6066, allocations: 0.6094 MB / 413.2 MB, free: 8.926 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.0003386/0.607, allocations: 146.9 kB / 413.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006979/0.614, allocations: 2.802 MB / 416.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/0.614, allocations: 4.062 kB / 416.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001766/0.6158, allocations: 0.7028 MB / 416.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.6183, allocations: 348.9 kB / 417.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.6288, allocations: 4.402 MB / 421.6 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.631, allocations: 1.353 MB / 423 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002179/0.6332, allocations: 292.4 kB / 423.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005328/0.6337, allocations: 99.44 kB / 423.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.623e-06/0.6337, allocations: 0 / 423.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Templates: time 0.03827/0.672, allocations: 17 MB / 440.3 MB, free: 13.53 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)