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.001629/0.001629, allocations: 108 kB / 15.6 MB, free: 132 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.001509/0.001509, allocations: 198.4 kB / 16.54 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.632/1.632, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001236/0.001236, allocations: 55.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2785, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.0213/0.2998, allocations: 15.19 MB / 340.5 MB, free: 4.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.3159, allocations: 5.669 MB / 346.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004706/0.3206, allocations: 75.62 kB / 346.2 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003563/0.3243, allocations: 0.9587 MB / 347.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00291/0.3272, allocations: 0.6276 MB / 347.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.3292, allocations: 0.7335 MB / 348.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004139/0.3333, allocations: 2.734 MB / 351.3 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.3353, allocations: 1.292 MB / 352.6 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.337, allocations: 1.031 MB / 353.6 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.3384, allocations: 1.069 MB / 354.7 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003368/0.3388, allocations: 264 kB / 354.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003758/0.3391, allocations: 260 kB / 355.2 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004473/0.3396, allocations: 0.5294 MB / 355.7 MB, free: 5.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.3408, allocations: 1.162 MB / 356.9 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.344, allocations: 3.099 MB / 360 MB, free: 1.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.344, allocations: 0 / 360 MB, free: 1.062 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.344, allocations: 0 / 360 MB, free: 1.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.162e-05/0.3441, allocations: 0 / 360 MB, free: 1.062 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.004438/0.3485, allocations: 2.466 MB / 362.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3486, allocations: 15.89 kB / 362.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/0.3489, allocations: 250 kB / 362.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.3507, allocations: 1.226 MB / 363.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002976/0.351, allocations: 257.4 kB / 364.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002388/0.3513, allocations: 192 kB / 364.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003378/0.3547, allocations: 1.923 MB / 366.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.484e-05/0.3547, allocations: 3.906 kB / 366.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/0.3549, allocations: 80 kB / 366.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.3549, allocations: 44 kB / 366.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003627/0.3586, allocations: 1.575 MB / 368 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.3689, allocations: 7.24 MB / 375.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.372, allocations: 1.206 MB / 376.4 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.373, allocations: 464.2 kB / 376.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.3731, allocations: 9 kB / 376.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.3732, allocations: 43.56 kB / 376.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 2.414e-06/0.3732, allocations: 0 / 376.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.03179/0.405, allocations: 7.863 MB / 384.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.4051, allocations: 64.41 kB / 384.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.4069, allocations: 1.24 MB / 386.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.407, allocations: 45.7 kB / 386.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007315/0.4077, allocations: 0.99 MB / 387.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.4081, allocations: 390.4 kB / 387.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004581/0.4085, allocations: 267.3 kB / 387.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.4087, allocations: 309.1 kB / 388.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/0.4106, allocations: 0.727 MB / 388.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00222/0.4128, allocations: 1.199 MB / 390 MB, free: 2.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003868/0.4167, allocations: 1.793 MB / 391.8 MB, free: 24 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.4167, allocations: 8 kB / 391.8 MB, free: 16 kB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004962/0.4217, allocations: 2.141 MB / 394 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.4218, allocations: 12 kB / 394 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/0.4218, allocations: 16 kB / 394 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.422, allocations: 45.34 kB / 394 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/0.4238, allocations: 415.3 kB / 394.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.425, allocations: 1.378 MB / 395.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.4265, allocations: 140 kB / 396 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.4266, allocations: 67.98 kB / 396 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002369/0.429, allocations: 0.9802 MB / 397 MB, free: 10.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002016/0.431, allocations: 1.158 MB / 398.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003452/0.4345, allocations: 1.729 MB / 399.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.045e-05/0.4345, allocations: 4 kB / 399.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004586/0.4391, allocations: 2.071 MB / 402 MB, free: 5.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.4391, allocations: 12 kB / 402 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.4391, allocations: 16 kB / 402 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001141/0.4393, allocations: 44.78 kB / 402 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.441, allocations: 391.4 kB / 402.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009754/0.4419, allocations: 1.39 MB / 403.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.4434, allocations: 119.9 kB / 403.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.4435, allocations: 64 kB / 404 MB, free: 3.086 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.0004253/0.444, allocations: 287.7 kB / 404.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.4442, allocations: 154 kB / 404.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003994/0.4482, allocations: 1.581 MB / 406 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.4483, allocations: 12 kB / 406 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4483, allocations: 0 / 406 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4483, allocations: 7.969 kB / 406 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007976/0.4563, allocations: 3.765 MB / 409.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/0.4563, allocations: 12 kB / 409.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.4575, allocations: 255.6 kB / 410 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.4576, allocations: 32.84 kB / 410.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.681e-05/0.4577, allocations: 36 kB / 410.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009937/0.4587, allocations: 1.382 MB / 411.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.4587, allocations: 15.94 kB / 411.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004768/0.4635, allocations: 2.23 MB / 413.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006951/0.4642, allocations: 299.1 kB / 414 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.4644, allocations: 35.98 kB / 414.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009379/0.4654, allocations: 107.9 kB / 414.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.4656, allocations: 132.2 kB / 414.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.4657, allocations: 40 kB / 414.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001281/0.467, allocations: 0.8103 MB / 415.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.467, allocations: 4 kB / 415.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001979/0.469, allocations: 0.6094 MB / 415.8 MB, free: 6.723 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.0002224/0.4692, allocations: 158.8 kB / 415.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006748/0.476, allocations: 2.868 MB / 418.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.476, allocations: 0 / 418.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.4777, allocations: 0.7035 MB / 419.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/0.4797, allocations: 365.5 kB / 419.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006756/0.4865, allocations: 3.593 MB / 423.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.4876, allocations: 1.337 MB / 424.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001736/0.4893, allocations: 300.4 kB / 425.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003834/0.4897, allocations: 107.4 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4897, allocations: 4 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Templates: time 0.0377/0.5274, allocations: 17.99 MB / 443.2 MB, free: 11.05 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)