Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0008718/0.000872, allocations: 88.64 kB / 16.31 MB, free: 5.621 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.001024/0.001024, allocations: 181.4 kB / 17.21 MB, free: 5.539 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.672/1.672, allocations: 205.4 MB / 223.4 MB, free: 5.562 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.0004905/0.0004906, allocations: 12 kB / 280.1 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2515, allocations: 47.59 MB / 327.7 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01475/0.2664, allocations: 13.33 MB / 341.1 MB, free: 6.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.2782, allocations: 5.328 MB / 346.4 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004075/0.2824, allocations: 71.62 kB / 346.5 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003228/0.2856, allocations: 0.7768 MB / 347.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.2886, allocations: 0.4962 MB / 347.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.2902, allocations: 479.4 kB / 348.2 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.2944, allocations: 2.425 MB / 350.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/0.2962, allocations: 0.8895 MB / 351.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.2981, allocations: 0.7969 MB / 352.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00136/0.2995, allocations: 0.8278 MB / 353.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.2997, allocations: 96 kB / 353.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.3, allocations: 104 kB / 353.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3003, allocations: 338.4 kB / 353.7 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006114/0.3009, allocations: 428.5 kB / 354.1 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002636/0.3036, allocations: 2.442 MB / 356.5 MB, free: 6.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.25e-05/0.3036, allocations: 4 kB / 356.5 MB, free: 6.566 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3036, allocations: 0 / 356.5 MB, free: 6.566 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.521e-05/0.3037, allocations: 4 kB / 356.5 MB, free: 6.562 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.004496/0.3082, allocations: 2.131 MB / 358.7 MB, free: 4.375 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.3083, allocations: 12.03 kB / 358.7 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004517/0.3087, allocations: 264.9 kB / 358.9 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.3108, allocations: 1.167 MB / 360.1 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003307/0.3111, allocations: 260.8 kB / 360.4 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000325/0.3115, allocations: 191.9 kB / 360.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003974/0.3154, allocations: 1.938 MB / 362.5 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.995e-05/0.3155, allocations: 7.906 kB / 362.5 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001939/0.3157, allocations: 76 kB / 362.6 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.189e-05/0.3158, allocations: 48 kB / 362.6 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003796/0.3196, allocations: 1.629 MB / 364.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.3312, allocations: 7.294 MB / 371.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.3339, allocations: 1.253 MB / 372.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.3349, allocations: 484.3 kB / 373.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.787e-05/0.335, allocations: 12.98 kB / 373.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.335, allocations: 43.56 kB / 373.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.735e-06/0.3351, allocations: 0 / 373.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.02983/0.3649, allocations: 8.818 MB / 382.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/0.365, allocations: 60.41 kB / 382.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.367, allocations: 1.236 MB / 383.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.3671, allocations: 45.7 kB / 383.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.3683, allocations: 0.9861 MB / 384.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/0.3688, allocations: 394.3 kB / 384.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/0.3689, allocations: 28 kB / 384.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.3691, allocations: 369.9 kB / 385.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.3712, allocations: 0.7691 MB / 386 MB, free: 8.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002329/0.3735, allocations: 1.234 MB / 387.2 MB, free: 6.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/0.3754, allocations: 0.8105 MB / 388.1 MB, free: 6.062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.3754, allocations: 7.938 kB / 388.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004888/0.3803, allocations: 2.223 MB / 390.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005295/0.3809, allocations: 0.5233 MB / 390.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.3809, allocations: 16 kB / 390.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.3811, allocations: 44.84 kB / 390.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.3828, allocations: 435.4 kB / 391.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.3839, allocations: 1.295 MB / 392.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.3854, allocations: 164 kB / 392.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/0.3856, allocations: 64 kB / 392.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.635e-06/0.3857, allocations: 4 kB / 392.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004042/0.3897, allocations: 1.954 MB / 394.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.639e-05/0.3898, allocations: 16.5 kB / 394.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001067/0.3899, allocations: 52.78 kB / 394.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.3915, allocations: 415.4 kB / 395.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000981/0.3925, allocations: 1.28 MB / 396.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.3939, allocations: 144 kB / 396.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.394, allocations: 67.94 kB / 396.7 MB, free: 12.86 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.moving[1],kinematicPTP.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001074/0.3951, allocations: 492.5 kB / 397.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002806/0.3954, allocations: 154 kB / 397.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003827/0.3992, allocations: 1.675 MB / 399 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.3992, allocations: 12 kB / 399 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3992, allocations: 7.953 kB / 399.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3993, allocations: 7.969 kB / 399.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008019/0.4073, allocations: 3.905 MB / 403 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.4073, allocations: 16.03 kB / 403 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.4085, allocations: 287.6 kB / 403.3 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.4086, allocations: 28.86 kB / 403.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.512e-05/0.4087, allocations: 39.98 kB / 403.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000991/0.4097, allocations: 1.272 MB / 404.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/0.4097, allocations: 11.94 kB / 404.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.4144, allocations: 2.378 MB / 407 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000726/0.4152, allocations: 303 kB / 407.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/0.4155, allocations: 35.98 kB / 407.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.4166, allocations: 131.9 kB / 407.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.4169, allocations: 132.2 kB / 407.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.179e-05/0.417, allocations: 40 kB / 407.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001408/0.4184, allocations: 0.8025 MB / 408.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4184, allocations: 0 / 408.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002379/0.4208, allocations: 0.6094 MB / 409 MB, free: 15.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002689/0.4211, allocations: 154.7 kB / 409.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006493/0.4276, allocations: 2.935 MB / 412.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/0.4276, allocations: 4 kB / 412.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.4294, allocations: 0.7538 MB / 412.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.4314, allocations: 349.2 kB / 413.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007899/0.4393, allocations: 4.306 MB / 417.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.4405, allocations: 1.345 MB / 418.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001813/0.4424, allocations: 288.5 kB / 419.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.4428, allocations: 107.4 kB / 419.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4428, allocations: 0 / 419.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of Templates: time 0.0344/0.4772, allocations: 16.39 MB / 435.6 MB, free: 5.102 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)